Update networking.tsx

Updated to send the user to /ui/ to login again instead of sending user to /.
This commit is contained in:
tombii 2025-04-14 10:57:57 +02:00 committed by GitHub
parent f4f2b6b71b
commit 6e9a19ccc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,7 @@ const handleError = async (errorData: string) => {
lastErrorTime = currentTime;
await sleep(3000); // 5 second sleep
document.cookie = "token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
window.location.href = baseUrl;
window.location.href = baseUrl + "ui/";
}
lastErrorTime = currentTime;
} else {
@ -4486,4 +4486,4 @@ export const teamPermissionsUpdateCall = async (
console.error("Failed to update team permissions:", error);
throw error;
}
};
};