Replies: 1 comment 1 reply
-
I'm moving this to a discussion since it seems to be a usage question. Note that bug reports require a reproduction that illustrates that you're experiencing a bug that is caused by |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Hello, your job is really amazing.
However I'm facing an issue. I actually have nested route params "/store/[storeId]/products/[id]", and the locale switcher does not work as excepted. I tried this
router.replace( {pathname, params}, {locale: nextLocale} );
But it does not redirect me well. Have you got solution ?
Verifications
Mandatory reproduction URL
App router
Reproduction description
Steps to reproduce:
I only install a fresh nextjs 14 app router, with Next Intl + localized pathnames.
When I click on the github example of locale switcher I'm not redirected to the right pathname. I'm redirected to the url without the last params.
Eg: /dashboard/store/[storeId]/products/[id] -> /tableau-de-bord/boutique/[storedId] <-- I lost products and params.
Expected behaviour
I would have the correct localized pathname. Thank for your job.
Beta Was this translation helpful? Give feedback.
All reactions