diff --git a/frontend/src/utils/axiosInstance.js b/frontend/src/utils/axiosInstance.js index 03fb5a5..38830d0 100644 --- a/frontend/src/utils/axiosInstance.js +++ b/frontend/src/utils/axiosInstance.js @@ -14,7 +14,7 @@ api.interceptors.response.use( if (err.response?.status === 401) { localStorage.removeItem('token'); localStorage.removeItem('user'); - window.location.href = '/login'; + window.location.href = '/'; } return Promise.reject(err); }