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
i18n configuration. The pathname can contain 2 different locales and it works (f.e. /en/de/). #31228
Comments
https://github.com/vordgi/next.js/tree/bugfix/second-locale-in-pathname (#31229) If I understand correctly what going on - the path has been replaced in 2 places: |
2 tasks
ijjk
added
kind: bug
and removed
bug
Issue was opened via the bug report template.
labels
Nov 11, 2021
kodiakhq bot
pushed a commit
that referenced
this issue
Nov 11, 2021
## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added Fixes: #31228
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
natew
pushed a commit
to natew/next.js
that referenced
this issue
Feb 16, 2022
…31229) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added Fixes: vercel#31228
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
12.0.3
What version of Node.js are you using?
14.17.5
What browser are you using?
Chrome
What operating system are you using?
Windows
How are you deploying your application?
next start
Describe the Bug
When I use i18n configuration I can see page in 3 difference urls.
For example, if I have page
/cards/
- it will be available at:/cards/
(that's ok, we expect it)/en/cards/
(that's ok too)/en/de/cards/
(what?)(In the last case language will be
/de/
)Expected Behavior
The page should be available only at:
/cards/
(that's ok, we expect it)/en/cards/
(that's ok too)Not at
/en/de/cards/
. On this page I am expecting a 404 errorTo Reproduce
Enable i18n in some project.
Here a good example with this error: https://github.com/vercel/next.js/tree/canary/examples/i18n-routing
The main page will be available at
,
/en
,/en/nl
;gsp
- at/gsp
,/en/gsp
,/en/fr/gsp
;etc
The text was updated successfully, but these errors were encountered: