-
Notifications
You must be signed in to change notification settings - Fork 26.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NEXT-834] Regression in 13.2: 404 on pages with dynamic routes and i18n enabled #46841
Comments
const Page = async () => {
return <div>Test</div>;
};
export default Page; |
Hmm, I am using the latest |
Currently trying to reduce my use case, because yeah I suspect there's more to it. |
The following is needed in next.config.js to trigger it i18n: {
locales: ["en"],
defaultLocale: "en",
}, |
Minimal reproduction case. Access
|
this is probably duplicate of #46814 |
I have the same problem, dynamic routes do not work with non-default locale |
@pveyes yeah seems like it is. |
Confirming route segments don't work when have i18n enabled in next.config. for next@13.2.x |
Fixes issue with app directory that caused problems with `i18n` was enabled. Previously, when you accessed a URL like `/blog/first-issue`, you would expect it to hit the app route at `/app/blog/[slug]/page.tsx`, but instead it internally attempted to access `/app/{defaultLocale}/blog/[slug]/page.tsx` (where `{defaultLocale}` is set in `next.config.js` via `i18n.defaultLocale`). This is because while the path did not assume the locale, the domain/default was enough to suggest it, causing the mismatch. This adds a new internal parameter for tracking this _default_ assignment so it can be handled by the matcher correctly. Fixes #46814 Fixes #46841 fix NEXT-777 ([link](https://linear.app/vercel/issue/NEXT-777)) fix NEXT-834 ([link](https://linear.app/vercel/issue/NEXT-834)) --------- Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Operating System: Platform: linux Arch: x64 Version: #1 SMP Fri Jan 27 02:56:13 UTC 2023 Binaries: Node: 16.19.1 npm: 8.19.3 Yarn: 1.22.19 pnpm: N/A Relevant packages: next: 13.2.4-canary.4 eslint-config-next: 13.2.3 react: 18.2.0 react-dom: 18.2.0
Which area(s) of Next.js are affected? (leave empty if unsure)
App directory (appDir: true), Routing (next/router, next/navigation, next/link)
Link to the code that reproduces this issue
To Reproduce
Use dynamic routing for URLs such as /test/[uuid]/page.tsx
Describe the Bug
This broke specifically in
next@13.1.7-canary.14
, as it was still working innext@13.1.7-canary.13
. Currently reviewing all the commits between the two versions to see what might be causing it.I get nothing in the logs, very mysterious.
Expected Behavior
No 404
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-834
The text was updated successfully, but these errors were encountered: