-
Notifications
You must be signed in to change notification settings - Fork 27k
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
Redirecting to locale domain #19174
Comments
I also noticed this. Despite that I have |
This ensures we detect domain specific locales and redirect them client-side. Tests have been added in the `i18n` suite to ensure the domain redirect is applied correctly during a client-side navigation Fixes: #19174
Hi, this has been updated in the latest version of Next.js |
Thanks @ijjk I just tried
|
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. |
Feature request
Is your feature request related to a problem? Please describe.
In NextJS 10 we are able to set different domains with different locales. Eg, in my case:
EN version is at: https://weddingfeud.com
PL version is at: https://weselnagra.pl
As far as I can see, nextjs won't redirect me to a different domain when I have a link with a new locale. I've added in the footer a language picker and it only changes locale on the current domain.
Describe the solution you'd like
I expected NextJS to automatically redirect me to the correct domain, eg. while being on .PL domain and switching to EN language, I would like to have NextJS redirect me to .COM domain that I specified in nextjs.config
Describe alternatives you've considered
A workaround is simple: language picker can just point to proper domains, but would be nice to have this as a part of NextJS functionality
The text was updated successfully, but these errors were encountered: