-
Everytime I update the query params, the path changes from /market to root / and append the query params instead of keeping the path. And i can't figure out how to prevent this. Here's my code:
When I now manually change the select option the page will do i full reload from localhost:5173/market to localhost:5173/?sort_by=price Any help appreciated |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I don't think this code is enough to determine what's going on...can you provide an actual reproduction? |
Beta Was this translation helpful? Give feedback.
-
I am trying to reproduce the behaviour on a fresh svelte repo, but somehow it works with the exact same code. Must be something external. I guess you can close this. Thanks for answering though |
Beta Was this translation helpful? Give feedback.
I found it, crazy annoying:
I had this in my app.html:
and the
<base href="/" />
is what caused it.