From 30e1c13dc7754fbefaa9edd0cbb53a5810d6fc3a Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 20 Nov 2023 09:52:40 +0000 Subject: [PATCH] fix(prerender): decode uris in headers (#1932) --- src/prerender.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/prerender.ts b/src/prerender.ts index 13259f1fcc..f15f867be0 100644 --- a/src/prerender.ts +++ b/src/prerender.ts @@ -390,7 +390,7 @@ function extractLinks( // Extract from x-nitro-prerender headers const header = res.headers.get("x-nitro-prerender") || ""; - _links.push(...header.split(",").map((i) => i.trim())); + _links.push(...header.split(",").map((i) => decodeURIComponent(i.trim()))); for (const link of _links.filter(Boolean)) { const _link = parseURL(link);