Skip to content

Commit a557b41

Browse files
committed
refactor comment
1 parent 3c3cbb7 commit a557b41

File tree

1 file changed

+1
-2
lines changed
  • packages/open-next/src/core/routing

1 file changed

+1
-2
lines changed

packages/open-next/src/core/routing/util.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,7 @@ export function normalizeLocationHeader(
468468
let search = locationURL.search;
469469
// If encodeQuery is true, we need to encode the query parameters
470470
// 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
471+
// We could have used URLSearchParams, but that doesn't match what Next does.
473472
if (encodeQuery) {
474473
search = search ? `?${stringifyQs(parseQs(search.slice(1)))}` : "";
475474
}

0 commit comments

Comments
 (0)