Redirect /graphs to /graphs/tab1
This commit is contained in:
parent
a2726d70a9
commit
5e03c73742
1 changed files with 8 additions and 0 deletions
8
src/routes/graphs/+layout.server.ts
Normal file
8
src/routes/graphs/+layout.server.ts
Normal 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');
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue