Is there a way to use router.push(url);
to redirect a user with a URL structure like this:
[:lang]/something/[...dynamicRouteParams]?searchParam=true
.
The problem I'm facing is that the user ends up being redirected to a page with a URL structure like this:
[:lang]/something/[...dynamicRouteParams]?searchParam=true&lang=something&dynamicRouteParams=item1&dynamicRouteParams=item2
.
Any suggestions on how to remove the search params associated with the route params?