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
When using router.type === 'hash', typical navigations via href="#/..." don't clear search parameters in the same way that their pathname counterparts do.
Perhaps the original documentation was correct in suggesting links start with /#/ so that the query parameters aren't preserved. However, we'd lose the ability to stay on the pathname /index.html (which matters for some static hosts?).
Should we be resetting the query params on navigation? cc: @dummdidumm
Describe the bug
When using
router.type === 'hash'
, typical navigations viahref="#/..."
don't clear search parameters in the same way that theirpathname
counterparts do.Reproduction
Use the search bar in https://github.com/stephenlrandall/kit-inline-test and then return to the home page.
Logs
System Info
Severity
serious, but I can work around it
Additional Information
A workaround is to prepend all links without search params with
?#/...
, although this is obviously undesirable.The text was updated successfully, but these errors were encountered: