Skip to content
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

Closed
vordgi opened this issue Nov 9, 2021 · 2 comments · Fixed by #31229
Closed

Comments

@vordgi
Copy link
Contributor

vordgi commented Nov 9, 2021

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:

  1. /cards/ (that's ok, we expect it)
  2. /en/cards/ (that's ok too)
  3. /en/de/cards/ (what?)

(In the last case language will be /de/)

Expected Behavior

The page should be available only at:

  1. /cards/ (that's ok, we expect it)
  2. /en/cards/ (that's ok too)
    Not at /en/de/cards/. On this page I am expecting a 404 error

To 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

@vordgi vordgi added the bug Issue was opened via the bug report template. label Nov 9, 2021
@vordgi
Copy link
Contributor Author

vordgi commented Nov 9, 2021

@ijjk ijjk added kind: bug and removed bug Issue was opened via the bug report template. labels Nov 11, 2021
@kodiakhq kodiakhq bot closed this as completed in #31229 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
@balazsorban44
Copy link
Member

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.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 27, 2022
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.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants