Skip to content

Commit

Permalink
fix: fix bug that redirected to login after logging in (#653)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparkier authored Jan 16, 2024
1 parent 4eb28d7 commit 991781e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/routes/(user)/login/+page.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
Expand Down

0 comments on commit 991781e

Please sign in to comment.