rsnext/packages/next
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
..
bin Use import() to load next.config.js (#29935) 2021-10-16 14:22:42 +02:00
build next/jest: Ensure typeof window is not transformed in jsdom environment (#31304) 2021-11-11 15:05:32 +00:00
bundles Add webpack5 types to right files 2021-11-09 15:40:13 +01:00
cli Output where preference is saved (#31305) 2021-11-11 16:48:00 +00:00
client correctly assess node equality when nonce attribute is present (#27573) 2021-11-10 19:31:32 -06:00
compiled Upgrade webpack (#31313) 2021-11-11 19:02:27 +00:00
export Fix middleware i18n rewrites (#31174) 2021-11-09 01:28:39 +00:00
image-types Add support for AVIF to next/image (#29683) 2021-10-11 23:17:47 +00:00
lib Add initial standalone build handling (#31003) 2021-11-09 11:03:20 -06:00
native Chore/rust workflow (#30577) 2021-10-29 13:56:56 -05:00
pages Do not hide body when concurrentFeatures is enabled (#31187) 2021-11-09 00:45:44 +00:00
server Ensure asPath is correctly normalized in minimalMode with i18n (#31281) 2021-11-11 20:11:50 +00:00
shared/lib Ensure asPath is correctly normalized in minimalMode with i18n (#31281) 2021-11-11 20:11:50 +00:00
telemetry Output where preference is saved (#31305) 2021-11-11 16:48:00 +00:00
trace Fix version in trace (#30982) 2021-11-04 20:56:30 +00:00
types use loader-utils 2 for resolve-url-loader to fix ./data: urls in sass (#31134) 2021-11-08 18:37:25 +00:00
amp.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
amp.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
app.d.ts
app.js
babel.d.ts
babel.js
client.d.ts
client.js
config.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
config.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
constants.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
constants.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
data.d.ts
data.js
data.sqlite Fix export worker threads options (#25063) 2021-05-14 12:50:29 +02:00
document.d.ts
document.js
dynamic.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
dynamic.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
error.d.ts
error.js
head.d.ts Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
head.js Move code shared between server/client to "shared" folder (#26734) 2021-06-30 11:43:31 +02:00
image.d.ts Image component foundation (#17343) 2020-10-14 11:57:10 +02:00
image.js Image component foundation (#17343) 2020-10-14 11:57:10 +02:00
jest.d.ts Ensure next/jest is published (#31296) 2021-11-11 11:48:12 +01:00
jest.js Ensure next/jest is published (#31296) 2021-11-11 11:48:12 +01:00
license.md Update license year for all packages 2021-01-11 11:12:19 +01:00
link.d.ts
link.js
package.json Upgrade webpack (#31313) 2021-11-11 19:02:27 +00:00
README.md docs(readme.md): add good first issue section to readme (#25085) 2021-05-18 16:10:01 -05:00
router.d.ts
router.js
script.d.ts Remove experimental tag from Script component (#25435) 2021-06-03 13:56:50 +02:00
script.js Remove experimental tag from Script component (#25435) 2021-06-03 13:56:50 +02:00
server.d.ts Implement Middleware RFC (#30081) 2021-10-20 17:52:11 +00:00
server.js Implement Middleware RFC (#30081) 2021-10-20 17:52:11 +00:00
taskfile-ncc.js Migrate server-sent events HMR connection to WebSocket (#29903) 2021-10-15 07:09:54 +00:00
taskfile-swc.js Use import() to load next.config.js (#29935) 2021-10-16 14:22:42 +02:00
taskfile.js use loader-utils 2 for resolve-url-loader to fix ./data: urls in sass (#31134) 2021-11-08 18:37:25 +00:00
tsconfig.json Revert incremental config to fix missing types (#30644) 2021-10-29 23:16:11 -05:00
vitals.d.ts Fix ie11 from untranspiled vitals (#29532) 2021-10-01 10:19:36 -05:00
vitals.js Fix ie11 from untranspiled vitals (#29532) 2021-10-01 10:19:36 -05:00

Next.js

Getting Started

Visit https://nextjs.org/learn to get started with Next.js.

Documentation

Visit https://nextjs.org/docs to view the full documentation.

Who is using Next.js?

Next.js is used by the world's leading companies. Check out the Next.js Showcase to learn more.

Community

The Next.js community can be found on GitHub Discussions, where you can ask questions, voice ideas, and share your projects.

To chat with other community members you can join the Next.js Discord.

Our Code of Conduct applies to all Next.js community channels.

Contributing

Please see our contributing.md.

Good First Issues

We have a list of good first issues that contain bugs which have a relatively limited scope. This is a great place to get started, gain experience, and get familiar with our contribution process.

Authors