Skip to content

Commit 70bf7bc

Browse files
committed
fix: qa
1 parent cc3055b commit 70bf7bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

apps/ticket-admin/src/lib/axios/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,8 @@ function redirectToLoginOnce() {
112112

113113
alert("로그인이 필요한 페이지입니다.");
114114
safeLocalStorage.remove(IS_LOGINED);
115-
window.location.href = EXTERNAL_PATH.LOGIN;
115+
116+
const redirectUrl = `${EXTERNAL_PATH.LOGIN}?redirectUrl=${encodeURIComponent(window.location.pathname)}`;
117+
118+
window.location.href = redirectUrl;
116119
}

0 commit comments

Comments
 (0)