fix: minor redirection issue on interceptor
This commit is contained in:
parent
7183cffdb7
commit
ae3b588081
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue