From 2adcb07e69b8f306fb21f45522965c73945bd9a4 Mon Sep 17 00:00:00 2001 From: Craig Kaiser Date: Mon, 7 Oct 2024 07:41:59 -0400 Subject: [PATCH] redirect to dashboard on signup confirmation link --- src/routes/auth/+page.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/routes/auth/+page.ts b/src/routes/auth/+page.ts index 0c1b929..b6d2db9 100644 --- a/src/routes/auth/+page.ts +++ b/src/routes/auth/+page.ts @@ -7,5 +7,10 @@ export const load: PageLoad = async ({ url }) => { if (url.searchParams.get('type') === 'recovery') { redirect(303, '/auth/recovery'); } + + if (url.searchParams.get('type') === 'signup') { + redirect(303, '/protected-routes/dashboard'); + } + return {}; };