Redirect /graphs to /graphs/tab1

This commit is contained in:
Neshura 2023-08-12 19:59:05 +02:00
parent a2726d70a9
commit 5e03c73742
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C

View file

@ -0,0 +1,8 @@
import { redirect } from '@sveltejs/kit';
export function load({ url }: { url: URL }) {
if (url.pathname == '/graphs') {
throw redirect(302, '/graphs/tab');
}
}