sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7.01k stars 435 forks source link

page.path also returns the service worker #1735

Open mikeoptics opened 3 years ago

mikeoptics commented 3 years ago

Describe the bug page.path in the preload function returns the page and also 'service-worker-index.html'

Im not sure if this is expect behaviour but its a nuisance when trying to use if statements in _layout.html to redirect certain pages.

Logs No logs.

Expected behavior I'd expect it to not return the service worker.

Severity No even slightly severe. Just a minor annoyance.