mirror of
https://github.com/koloml/philomena-tagging-assistant.git
synced 2026-05-09 15:12:21 +00:00
8 lines
302 B
JavaScript
8 lines
302 B
JavaScript
/** @type {import('@sveltejs/kit').Reroute} */
|
|
export function reroute({url}) {
|
|
// Reroute index.html as just / for the root.
|
|
// Browser extension starts from with the index.html file in the pathname which is not correct for the router.
|
|
if (url.pathname === '/index.html') {
|
|
return "/";
|
|
}
|
|
} |