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
The new routing endpoints are great, but I think I've come across a bug. If you use goto to set a querystring/searchParam, the routing endpoint can't read the searchParam when using client-side routing. But it can if you refresh the page (server-side routing).
My guess, not being familiar with sveltekit's codebase, is that the issue could be with how goto sets HTML5 history - perhaps it's not including the query/searchParams there. But that's a rather wild guess.
The text was updated successfully, but these errors were encountered:
Describe the bug
The new routing endpoints are great, but I think I've come across a bug. If you use
goto
to set a querystring/searchParam, the routing endpoint can't read the searchParam when using client-side routing. But it can if you refresh the page (server-side routing).Reproduction
Use this basic reproduction on stackblitz.
I've left a couple lines commented out to illustrate the conditions under which it works as expected:
load
function instead of a routing endpoint (uncomment the load function)<form>
submission, instead ofgoto
(uncomment the<form>
tag and comment out the one beneath)Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
My guess, not being familiar with sveltekit's codebase, is that the issue could be with how
goto
sets HTML5 history - perhaps it's not including the query/searchParams there. But that's a rather wild guess.The text was updated successfully, but these errors were encountered: