From ec8e1bd776a85e4e389333da6abb23781e273ecc Mon Sep 17 00:00:00 2001 From: balex Date: Fri, 27 Feb 2026 23:34:21 +0100 Subject: [PATCH] fix log --- rag-view/src/features/fetch-async/fetchWithAuth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rag-view/src/features/fetch-async/fetchWithAuth.js b/rag-view/src/features/fetch-async/fetchWithAuth.js index ca9f764..2b2e38d 100644 --- a/rag-view/src/features/fetch-async/fetchWithAuth.js +++ b/rag-view/src/features/fetch-async/fetchWithAuth.js @@ -1,5 +1,5 @@ import fetchRefreshToken from "./fetchRefreshToken"; -import { JWT_TOKEN } from "../constants"; +import { JWT_TOKEN, BASE_URL } from "../constants"; const SESSION_INVALIDATED = "SESSION_INVALIDATED"; @@ -24,7 +24,7 @@ export const fetchWithAuth = async ( if (responseText === SESSION_INVALIDATED) { localStorage.clear(); - window.location.href = "/login"; + window.location.href = BASE_URL + "/login"; return firstRes; }