We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc3055b commit 70bf7bcCopy full SHA for 70bf7bc
1 file changed
apps/ticket-admin/src/lib/axios/index.ts
@@ -112,5 +112,8 @@ function redirectToLoginOnce() {
112
113
alert("로그인이 필요한 페이지입니다.");
114
safeLocalStorage.remove(IS_LOGINED);
115
- window.location.href = EXTERNAL_PATH.LOGIN;
+
116
+ const redirectUrl = `${EXTERNAL_PATH.LOGIN}?redirectUrl=${encodeURIComponent(window.location.pathname)}`;
117
118
+ window.location.href = redirectUrl;
119
}
0 commit comments