Skip to content

Commit 1390a1c

Browse files
authored
Fixed issue with redirect after a successful sign-in (#1559)
1 parent 3cded59 commit 1390a1c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/startup.runtime.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ document.addEventListener("DOMContentLoaded", () => {
1616

1717
window.onbeforeunload = () => {
1818
if (!location.pathname.startsWith("/signin-sso") &&
19-
!location.pathname.startsWith("/signup")) {
19+
!location.pathname.startsWith("/signup") &&
20+
!location.pathname.startsWith("/signin")) {
2021
const rest = location.href.split(location.pathname)[1];
2122
const returnUrl = location.pathname + rest;
2223
sessionStorage.setItem("returnUrl", returnUrl);

0 commit comments

Comments
 (0)