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
search params are mixed between "server search params" and "hash search params"
I have to agree with the opinion of Tanner in #1449, maybe this breaking change should not have been introduced.
I think the additional slash can be safely removed, and maybe the new search behaviour can be an option ?
The previous behaviour was that when using window.location.hash = '#/about' or a regular , the href would have only one /.
Also the search params sent to the server (before the # character) are now received by the router and are not separate from the "search params" that come after the # character. I do have a use case in my application where I use regular search params so that the server can dynamically change the source of my SPA script, and "hash search params" so that my @tanstack/react-router routes can use them for navigation. I do agree it is a pretty uncommon use case
Screenshots or Videos
No response
Platform
OS: [Windows]
Browser: [Edge, Firefox]
Version: [Edge 134.0.3124.51, Firefox 136.0]
I don't think the issue is platform specific
Additional context
No response
The text was updated successfully, but these errors were encountered:
Which project does this relate to?
Router
Describe the bug
PR #3644 for issue #3595 introduced two breaking changes in v1.112.8 :
I have to agree with the opinion of Tanner in #1449, maybe this breaking change should not have been introduced.
I think the additional slash can be safely removed, and maybe the new search behaviour can be an option ?
I'll try and create a PR for this if that's OK
Your Example Website or App
https://stackblitz.com/edit/github-ujeikeh5?file=src%2Froutes%2Findex.tsx
Steps to Reproduce the Bug or Issue
Expected behavior
The previous behaviour was that when using window.location.hash = '#/about' or a regular , the href would have only one /.
Also the search params sent to the server (before the # character) are now received by the router and are not separate from the "search params" that come after the # character. I do have a use case in my application where I use regular search params so that the server can dynamically change the source of my SPA script, and "hash search params" so that my @tanstack/react-router routes can use them for navigation. I do agree it is a pretty uncommon use case
Screenshots or Videos
No response
Platform
I don't think the issue is platform specific
Additional context
No response
The text was updated successfully, but these errors were encountered: