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 redirect bug #301

Open
samuelcastro opened this issue Mar 21, 2021 · 2 comments
Open

i18n redirect bug #301

samuelcastro opened this issue Mar 21, 2021 · 2 comments

Comments

@samuelcastro
Copy link
Contributor

Describe the bug
On catch-all routes page, if you try to change the language, it'll fail redirecting the user to the following route: https://nrn-v2-mst-aptd-at-lcz-sty-c1.vercel.app/fr/demo/native-features/example-optional-catch-all-routes/[[...slug]]?slug=you%2Ccan%2Cgo%2Cto%2Cany%2Cdepth%2Cyou%2Cwant

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://nrn-v2-mst-aptd-at-lcz-sty-c1.vercel.app/en/demo/native-features/example-optional-catch-all-routes
  2. Click in the flag to change the language.
  3. See the url

Expected behavior
Be able to change the language properly.

@Vadorequest
Copy link
Member

Yeah, it's a bug in the i18nLink component if I remember correctly. It's basically because it doesn't know about query params that are specific to the catch-all page and don't convert them.

I'm not sure how to fix that 🤔

@samuelcastro
Copy link
Contributor Author

This is happening in the i18nRedirect fn as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants