We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c3cbb7 commit a557b41Copy full SHA for a557b41
packages/open-next/src/core/routing/util.ts
@@ -468,8 +468,7 @@ export function normalizeLocationHeader(
468
let search = locationURL.search;
469
// If encodeQuery is true, we need to encode the query parameters
470
// This is used for redirects from Next config
471
- // We could have used URLSearchParams, but that encodes it too much. stringify from querystring uses encodeURIComponent
472
- // which is what Next.js does for redirects from the config
+ // We could have used URLSearchParams, but that doesn't match what Next does.
473
if (encodeQuery) {
474
search = search ? `?${stringifyQs(parseQs(search.slice(1)))}` : "";
475
}
0 commit comments