diff --git a/src/routes/[...path]/+page.ts b/src/routes/[...path]/+page.ts index fae4d6d..5fcc1b9 100644 --- a/src/routes/[...path]/+page.ts +++ b/src/routes/[...path]/+page.ts @@ -1,6 +1,7 @@ import type { PageLoad } from './$types'; import { redirect } from '@sveltejs/kit'; +import { PUBLIC_BASE_PATH } from '$env/static/public'; export const load: PageLoad = async () => { - throw redirect(302, '/'); + throw redirect(302, `${PUBLIC_BASE_PATH}/`); };