From 932b9d8de52a2402a868e7627a038be4e1334921 Mon Sep 17 00:00:00 2001 From: Ashraf Mohammed Date: Thu, 26 Oct 2023 15:14:23 +0530 Subject: [PATCH] resolve cross scripting --- src/Components/Auth/Login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();