diff --git a/apps/web/lib/buildLegacyCtx.tsx b/apps/web/lib/buildLegacyCtx.tsx index 4ec6d898b17bca..22817f0cf645da 100644 --- a/apps/web/lib/buildLegacyCtx.tsx +++ b/apps/web/lib/buildLegacyCtx.tsx @@ -55,6 +55,7 @@ export const buildLegacyCtx = ( query: { ...searchParams, ...params }, // decoding is required to be backward compatible with Pages Router // because Next.js App Router does not auto-decode query params while Pages Router does + // e.g., params: { name: "John%20Doe" } => params: { name: "John Doe" } params: decodeParams(params), req: { headers: buildLegacyHeaders(headers), cookies: buildLegacyCookies(cookies) }, res: new Proxy(Object.create(null), {