Skip to content

Commit

Permalink
resolve cross scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafMd-1 committed Oct 26, 2023
1 parent 9974349 commit 932b9d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Components/Auth/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 932b9d8

Please sign in to comment.