-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Describe the bug
Currently the router always adds a trailing slash to the basepath.
So if you are at mysite.com/page/one with basepath: '/page/one' and you try to use navigate to update the search params then you end up at mysite.com/page/one/?param=value
Same thing applies if you have no basepath set, so mysite.com would become mysite.com/?param=value
Your Example Website or App
https://stackblitz.com/edit/github-kf59by?file=src/main.tsx
Steps to Reproduce the Bug or Issue
In the example above, just load the page (in a new tab so you can see the query string) and take a look at the address bar.
Expected behavior
I'd expect to be able to specify not add the slash, so that you would end up at mysite.com/page/one?param=value
Screenshots or Videos
No response
Platform
All platforms
Additional context
Opening this issue at @tannerlinsley's request. Related discord thread here: https://discord.com/channels/719702312431386674/1052911561032880148