From a1b6b5ec18fcb79be0383a4f841b18bff040cb1d Mon Sep 17 00:00:00 2001 From: PThorpe92 Date: Thu, 12 Dec 2024 16:43:10 -0500 Subject: [PATCH] fix: oauth issue with internal navigation being used for full TLD url --- frontend/src/Components/forms/LoginForm.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/Components/forms/LoginForm.tsx b/frontend/src/Components/forms/LoginForm.tsx index eca0e7d4..b92c2e19 100644 --- a/frontend/src/Components/forms/LoginForm.tsx +++ b/frontend/src/Components/forms/LoginForm.tsx @@ -42,7 +42,8 @@ export default function LoginForm() { data )) as ServerResponseOne; 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);