diff --git a/frontend/src/routes/(user)/login/+page.server.ts b/frontend/src/routes/(user)/login/+page.server.ts index f7f0bd9f..5f0a0948 100644 --- a/frontend/src/routes/(user)/login/+page.server.ts +++ b/frontend/src/routes/(user)/login/+page.server.ts @@ -53,7 +53,7 @@ export const actions: Actions = { } redirect( 303, - data.has('redirect') && data.get('redirect') !== '' + data.has('redirect') && data.get('redirect') !== '' && data.get('redirect') !== '/login' ? (data.get('redirect') as string) : `/home/${username}` );