rsnext/packages/next/shared/lib/router/utils
JJ Kasper 49c99cc323
Fix host segment replacing for custom routes (#29090)
This fixes segments inside of the host of the destination failing to parse with url.parse due to the unexpected colon by escaping the colon for segments and then unescaping them after we have parsed the URL.

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [x] Errors have helpful link attached, see `contributing.md`

x-ref: https://github.com/vercel/vercel/pull/6713
2021-09-14 20:13:46 +00:00
..
escape-path-delimiters.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
format-url.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
get-asset-path-from-route.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
get-route-from-asset-path.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
index.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
is-dynamic.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
parse-next-url.ts Refactor i18n checks on request handling (#27328) 2021-07-21 16:12:33 +00:00
parse-relative-url.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
parse-url.ts Refactor i18n checks on request handling (#27328) 2021-07-21 16:12:33 +00:00
path-match.ts Update redirect regexes to not match _next (#27143) 2021-07-13 19:38:14 +00:00
prepare-destination.ts Fix host segment replacing for custom routes (#29090) 2021-09-14 20:13:46 +00:00
querystring.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
resolve-rewrites-noop.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
resolve-rewrites.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
route-matcher.ts Refactor decode failures (#26899) 2021-07-05 18:31:32 +02:00
route-regex.ts Refactor i18n checks on request handling (#27328) 2021-07-21 16:12:33 +00:00
sorted-routes.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00