Skip to content

fix: Prefix pathnames when switching with useRouter to another locale - #2021

Merged
amannn merged 2 commits into
mainfrom
fix/2020-userouter-locale-prefix
Sep 15, 2025
Merged

fix: Prefix pathnames when switching with useRouter to another locale#2021
amannn merged 2 commits into
mainfrom
fix/2020-userouter-locale-prefix

Conversation

@amannn

@amannn amannn commented Sep 12, 2025

Copy link
Copy Markdown
Owner

Fixes #2020

@vercel

vercel Bot commented Sep 12, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
next-intl-docs Ready Ready Preview Comment Sep 15, 2025 10:41am
next-intl-example-app-router Ready Ready Preview Comment Sep 15, 2025 10:41am
next-intl-example-app-router-without-i18n-routing Ready Ready Preview Comment Sep 15, 2025 10:41am

@amannn amannn changed the title fix: Prefix pathnames when switching with useRouter and navigating to another locale fix: Prefix pathnames when switching with useRouter to another locale Sep 15, 2025
@amannn
amannn merged commit c82d0af into main Sep 15, 2025
9 checks passed
@amannn
amannn deleted the fix/2020-userouter-locale-prefix branch December 29, 2025 14:34
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

Successfully merging this pull request may close these issues.

Switching locales programmatically on the client between domains with localePrefix: “as-needed”

1 participant