ItalyPaleAle / svelte-spa-router

Router for SPAs using Svelte 3
MIT License
1.54k stars 105 forks source link

Is it possible to prevent URLs from being initialized when the browser is reloaded? #258

Closed nrikiji closed 2 years ago

nrikiji commented 2 years ago

Thanks for the great library.

Is it possible to prevent the parameters after the hash from being removed and the root URL from being displayed when the browser is reloaded?

http://localhost:8080/#/?tab=1 For example, if you reload your browser with this URL

http://localhost:8080/#/ This URL will be displayed.

Is there something wrong with my program?

ItalyPaleAle commented 2 years ago

The router doesn't alter the URL in that way. Do you have any other code that may be interacting with the hash?

nrikiji commented 2 years ago

Thanks, now that I know it's not a svelte-spa-router problem, I'll look into it here.

ItalyPaleAle commented 2 years ago

Ok. If it ends up being a bug here, feel free to reopen with details :)