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

Allow Navigation with Link without client-side JavaScript #664

Closed
Emrin opened this issue Nov 24, 2023 · 1 comment
Closed

Allow Navigation with Link without client-side JavaScript #664

Emrin opened this issue Nov 24, 2023 · 1 comment
Labels
enhancement New feature or request unconfirmed Needs triage.

Comments

@Emrin
Copy link

Emrin commented Nov 24, 2023

Is your feature request related to a problem? Please describe.

Next's default Link component does not require client-side JavaScript to work.
When using the next-intl Link, routing works for the default locale but not for the others:
image
For example, while using localePrefix: "never" along with localized pathnames and after disabling JS on the client, theres an infinite redirection loop.

Describe the solution you'd like

Next-Intl's Link to not cause infinite redirection without Client-Side JS.

Describe alternatives you've considered

Not using localePrefix: "never" is an alternative.

@Emrin Emrin added enhancement New feature or request unconfirmed Needs triage. labels Nov 24, 2023
@amannn
Copy link
Owner

amannn commented Nov 24, 2023

This is closely related: #444

Are you sure that you're seeing an infinite redirection loop? The link should include the locale prefix, but if you click it, it should redirect from the middleware to the non-prefixed version (and stay there).

If you see an infinite redirect, can you provide a reproduction?

@Emrin Emrin closed this as completed Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request unconfirmed Needs triage.
Projects
None yet
Development

No branches or pull requests

2 participants