redirect to root on unknown report hash

This commit is contained in:
2024-11-29 00:00:50 +01:00
parent 58d39921cb
commit dc86dceb2f
3 changed files with 7 additions and 48 deletions

View File

@ -0,0 +1,7 @@
import type { PageLoad } from './$types';
import { redirect } from '@sveltejs/kit';
import { env } from '$env/dynamic/public';
export const load: PageLoad = async () => {
throw redirect(302, `${env.PUBLIC_BASE_PATH}/`);
};