You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have defined a dynamic route [lang]/something/[[...dynamicParams]]/index.tsx and when I'm trying to redirect a user after submitting a form to an url like [:lang]/something/[...dynamicRouteParams]?searchParam=true (this is a representation of url, not an actual url). The important part here is an additional query param.
Unfortunately, after page reload an url in the browser address bar is showing: en/something/dynamicParam1/dynamicParam2?searchParam=true&lang=en&dynamicRouteParams=dynamicParam1&dynamicRouteParams=dynamicParam2.
Similar behaviour happens when using the next/link component.
Expected Behavior
I'm expecting an url as en/something/dynamicParam1/dynamicParam2?searchParam=true after page reload.
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.
vercel
locked as resolved and limited conversation to collaborators
Jan 27, 2022
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Next.js are you using?
10.1.3
What version of Node.js are you using?
14.17.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
other platform
Describe the Bug
I have defined a dynamic route
[lang]/something/[[...dynamicParams]]/index.tsx
and when I'm trying to redirect a user after submitting a form to an url like[:lang]/something/[...dynamicRouteParams]?searchParam=true
(this is a representation of url, not an actual url). The important part here is an additional query param.Unfortunately, after page reload an url in the browser address bar is showing:
en/something/dynamicParam1/dynamicParam2?searchParam=true&lang=en&dynamicRouteParams=dynamicParam1&dynamicRouteParams=dynamicParam2
.Similar behaviour happens when using the next/link component.
Expected Behavior
I'm expecting an url as
en/something/dynamicParam1/dynamicParam2?searchParam=true
after page reload.To Reproduce
The text was updated successfully, but these errors were encountered: