rsnext/packages/next/shared/lib/i18n
Steven eb0bd63af4
Fix basePath replacing server-side and normalizeLocalePath() when path is empty string (#30978)
This fixes our `basePath` detection/replacing server-side as we were incorrectly considering `/docss` a match for a `basePath` of `/docs` which caused us to have an unexpected value in the `normalizeLocalePath` function. 

- Fixes #22429
- Regression introduced in #17757 
- Fixes: https://github.com/vercel/next.js/issues/31423

Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
2021-11-15 17:33:21 +00:00
..
detect-domain-locale.ts Refactor i18n checks on request handling (#27328) 2021-07-21 16:12:33 +00:00
detect-locale-cookie.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
get-locale-metadata.ts Implement Middleware RFC (#30081) 2021-10-20 17:52:11 +00:00
normalize-locale-path.ts Fix basePath replacing server-side and normalizeLocalePath() when path is empty string (#30978) 2021-11-15 17:33:21 +00:00