From e38a10bec33b050212a1ddd34a971f4ec1c580a2 Mon Sep 17 00:00:00 2001 From: nichenqin Date: Mon, 2 Sep 2024 10:53:34 +0800 Subject: [PATCH] fix: fix login redirect --- apps/frontend/src/routes/(auth)/login/+page.svelte | 2 +- apps/frontend/src/routes/(auth)/signup/+page.svelte | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/frontend/src/routes/(auth)/login/+page.svelte b/apps/frontend/src/routes/(auth)/login/+page.svelte index 0a1cf5319..64d795205 100644 --- a/apps/frontend/src/routes/(auth)/login/+page.svelte +++ b/apps/frontend/src/routes/(auth)/login/+page.svelte @@ -209,7 +209,7 @@
Don't have an account? {#if redirect} - Sign up + Sign up {:else} Sign up {/if} diff --git a/apps/frontend/src/routes/(auth)/signup/+page.svelte b/apps/frontend/src/routes/(auth)/signup/+page.svelte index 950ef74bf..ba9c6b270 100644 --- a/apps/frontend/src/routes/(auth)/signup/+page.svelte +++ b/apps/frontend/src/routes/(auth)/signup/+page.svelte @@ -63,7 +63,7 @@ }, async onSuccess(data, variables, context) { if (redirect) { - await goto(redirect) + window.location.href = redirect } else { await goto("/") } @@ -245,7 +245,7 @@ {#if invitationId} Sign in {:else if redirect} - Sign in + Sign in {:else} Sign in {/if}