-
Notifications
You must be signed in to change notification settings - Fork 475
-
Notifications
You must be signed in to change notification settings - Fork 475
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
switchLocalePath does not keep query params in URL #2354
Comments
I have the same problem and can't find a solution |
Was using this for my product page with filters, where I need them to stay persistent. |
Could you provide a minimal reproduction of this issue? I am unable to replicate it, here is a starter project you can use. |
@BobbieGoede the issue can be replicated with the starter project you provided. Open the app in a new tab and add any query parameter to the URL, for example Example: |
Environment
Reproduction
.
Describe the bug
When using
const switchLocalePath = useSwitchLocalePath();
As
switchLocalePath('en')
URL changes, but it does not keep query parameters, example:
URL is
/cart?test=123
After switchLocalePath it is
/en/cart
But I need
/en/cart?test=12
I am using
strategy: 'prefix_except_default',
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: