ItalyPaleAle / svelte-spa-router

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

when visiting the homepage, http auto redirects to https #275

Closed resession closed 2 years ago

resession commented 2 years ago

whenever i go to http://somepage.com/, it auto redirects to https://somepage.com. i tried a new svelte project and i can confirm that svelte by itself works and does not auto redirect. but when i use svelte-spa-router, this auto redirect problem happens. any ideas?

i don't want it to redirect.

ItalyPaleAle commented 2 years ago

I don’t think this is the router, as I don’t believe there’s any code path that would cause this. What platform is your app running on? That would be the first thing I’d consider.

resession commented 2 years ago

@ItalyPaleAle you are correct, it is not svelte-spa-router, it is gundb. i commented out <Router {routes}>, half of the routes uses gundb, the routes without gundb works. i will close this out.