From 5e03c73742805153b1da96158e93d8491603aa1d Mon Sep 17 00:00:00 2001 From: Neshura Date: Sat, 12 Aug 2023 19:59:05 +0200 Subject: [PATCH] Redirect /graphs to /graphs/tab1 --- src/routes/graphs/+layout.server.ts | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/routes/graphs/+layout.server.ts diff --git a/src/routes/graphs/+layout.server.ts b/src/routes/graphs/+layout.server.ts new file mode 100644 index 0000000..a63087a --- /dev/null +++ b/src/routes/graphs/+layout.server.ts @@ -0,0 +1,8 @@ +import { redirect } from '@sveltejs/kit'; + +export function load({ url }: { url: URL }) { + if (url.pathname == '/graphs') { + throw redirect(302, '/graphs/tab'); + } + +} \ No newline at end of file