fix: minor redirection issue on interceptor

This commit is contained in:
sriram veeraghanta 2025-01-13 19:54:19 +05:30
parent 7183cffdb7
commit ae3b588081

View file

@ -34,7 +34,7 @@ export abstract class APIService {
(error) => { (error) => {
if (error.response && error.response.status === 401) { if (error.response && error.response.status === 401) {
const currentPath = window.location.pathname; const currentPath = window.location.pathname;
let prefix = ""; let prefix = "/";
let updatedPath = currentPath; let updatedPath = currentPath;
// Check for special path prefixes // Check for special path prefixes