-
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
New locale redirect behavior #20612
Comments
Some additional thoughts:
|
I opened a PR here to address the |
This ensures we render the locale domain on the `href` when using `next/link` previously the provided `href` was stilling being rendered which differed from the resulting `href` that was navigated to. Fixes: #20612
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. |
Thanks @ijjk I just tried
v10.0.5-canary.4
in one of my projects. Is it expected that<Link href="/hello" locale="xx" />
still points to/xx/hello
, which is followed by a redirect on click? Two observations:Having
/xx/hello
is probably not as good asmy-domain-for.xx/hello
SEO-wiseDuring local dev, having
domains: [{domain: "xx.localhost", defaultLocale: "xx"}]
means that the redirect from/xx/hello
goes tohttps://xx.localhost/hello
instead ofhttp://xx.localhost:3000/hello
(note the port and the protocol). This requires manual URL tweaking before the website in another locale can be viewed. What would be the suggested way forward here?Originally posted by @kachkaev in #19174 (comment)
The text was updated successfully, but these errors were encountered: