From f5968f3aa9b37090d8cc30557da0a954d4a44564 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Thu, 11 Aug 2022 16:01:22 +0200 Subject: [PATCH] :sparkles: Redirecting to dashboard if logged in on the landing screen --- frontend/src/routes/index.svelte | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/routes/index.svelte b/frontend/src/routes/index.svelte index 42700f9..8b49f82 100644 --- a/frontend/src/routes/index.svelte +++ b/frontend/src/routes/index.svelte @@ -9,6 +9,10 @@ export async function load({ session }) { if (session.authenticated) { signedIn.set(true); + return { + status: 302, + redirect: '/dashboard' + }; } return {}; }