Skip to content

Commit

Permalink
fix: oauth issue with internal navigation being used for full TLD url
Browse files Browse the repository at this point in the history
  • Loading branch information
PThorpe92 committed Dec 12, 2024
1 parent 1df5239 commit a1b6b5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/Components/forms/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export default function LoginForm() {
data
)) as ServerResponseOne<AuthResponse>;
if (resp.success) {
navigate(resp.data.redirect_to ?? resp.data.redirect_browser_to);
window.location.href =
resp.data.redirect_to ?? resp.data.redirect_browser_to;
return;
}
setErrorMessage(true);
Expand Down

0 comments on commit a1b6b5e

Please sign in to comment.