diff --git a/src/Components/Auth/Login.tsx b/src/Components/Auth/Login.tsx index ca63419f59f..b631cdd951d 100644 --- a/src/Components/Auth/Login.tsx +++ b/src/Components/Auth/Login.tsx @@ -113,7 +113,7 @@ export const Login = (props: { forgot?: boolean }) => { "redirect" ); redirectParam - ? (window.location.href = redirectParam.toString()) + ? (window.location.href = window.location.origin + redirectParam) : (window.location.href = "/facility"); } else { window.location.href = window.location.pathname.toString();