rsnext/packages/next/shared/lib
JJ Kasper 6b89fbf12d
Ensure asPath is correctly normalized in minimalMode with i18n (#31281)
This ensures the `asPath` and `req.url` values are normalized correctly for fallback pages with i18n in minimal mode. This also copies the minimal mode test suite to run against i18n as well. This also fixes an issue where rewrite params weren't passed correctly on the client when no params were already used in the destination. 

The provided reproduction has been deployed against this patch [here](https://nextjs-error-repro-9zdu3sp5r-ijjk-testing.vercel.app/page/test-page) show it working. 

## Bug

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

Fixes: https://github.com/vercel/next.js/issues/27563
Fixes: https://github.com/vercel/next.js/issues/30203
2021-11-11 20:11:50 +00:00
..
i18n Implement Middleware RFC (#30081) 2021-10-20 17:52:11 +00:00
router Ensure asPath is correctly normalized in minimalMode with i18n (#31281) 2021-11-11 20:11:50 +00:00
amp-context.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
amp.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
constants.ts Experimental next/jest config helper (#31246) 2021-11-10 16:16:15 -08:00
dynamic.tsx Fix typings of dynamic suspense (#28740) 2021-09-02 16:14:48 +00:00
head-manager-context.ts next/script fix duplicate scripts (#28428) 2021-08-24 11:07:38 -05:00
head.tsx Update to latest babel versions (#28174) 2021-08-17 09:18:08 +02:00
loadable-context.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
loadable.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
loadable.js Support suspense in next dynamic (#27611) 2021-08-13 21:08:45 +00:00
mitt.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
post-process.ts Remove inert font tag in font optimization (#28869) 2021-09-15 11:43:13 -05:00
router-context.ts Add new target for middleware (#30299) 2021-10-26 18:50:56 +02:00
runtime-config.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
side-effect.tsx Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
to-base-64.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
utils.ts Add render prop support to <Main> (#30156) 2021-11-07 17:36:39 +00:00