diff --git a/frontend/src/api.ts b/frontend/src/api.ts index 065cdb1..e531a12 100644 --- a/frontend/src/api.ts +++ b/frontend/src/api.ts @@ -11,7 +11,7 @@ api.interceptors.response.use( (response) => response, (error) => { if (error.response?.status === 401) { - window.location.href = '/auth/login?redirect=' + encodeURIComponent(window.location.pathname) + ;(window.top ?? window).location.href = '/login' } return Promise.reject(error) }