Skip to content

Commit 4f8f1b1

Browse files
committed
fix: qa
1 parent 70bf7bc commit 4f8f1b1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import axios, { AxiosError, AxiosResponse, InternalAxiosRequestConfig } from "axios";
22

3-
import { API_URL } from "@/data/constants";
43
import { EXTERNAL_PATH } from "@/shared/constants/path";
54
import { IS_LOGINED } from "@/shared/constants/storage";
65
import { isAxiosErrorResponse } from "@/shared/types/axioxError";
@@ -113,7 +112,9 @@ function redirectToLoginOnce() {
113112
alert("로그인이 필요한 페이지입니다.");
114113
safeLocalStorage.remove(IS_LOGINED);
115114

116-
const redirectUrl = `${EXTERNAL_PATH.LOGIN}?redirectUrl=${encodeURIComponent(window.location.pathname)}`;
115+
const redirectUrl = `${EXTERNAL_PATH.LOGIN}?redirectUrl=${encodeURIComponent(
116+
window.location.origin + window.location.pathname + window.location.search,
117+
)}`;
117118

118119
window.location.href = redirectUrl;
119120
}

0 commit comments

Comments
 (0)