diff --git a/rag-view/src/features/fetch-async/fetchWithAuth.js b/rag-view/src/features/fetch-async/fetchWithAuth.js index cc16faa..ca9f764 100644 --- a/rag-view/src/features/fetch-async/fetchWithAuth.js +++ b/rag-view/src/features/fetch-async/fetchWithAuth.js @@ -24,7 +24,7 @@ export const fetchWithAuth = async ( if (responseText === SESSION_INVALIDATED) { localStorage.clear(); - window.location.href = `${import.meta.env.BASE_URL}login`; + window.location.href = "/login"; return firstRes; }