-
When updating a param via the helpers.update() method it changes the path Example:
The url switches from /market to the root /?sort_by=price I am using sveltekit, here's my code: lib/hooks/market.ts:
component:
What am I doing wrong? Thanks for any help |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Do you have a full minimal example (yours is missing |
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 |
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.