manually include basePath

This commit is contained in:
Francis Cao committed 2025-11-09 22:03:06 -08:00
1 parent f30724629c
commit 9230f3cb7b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -16,7 +16,7 @@ export function App({ children }) {
}
if (error) {
window.location.href = '/login';
window.location.href = `${process.env.basePath || ''}/login`;
return null;
}
+1 -1
View File
@@ -13,7 +13,7 @@ export function LogoutPage() {
async function logout() {
await post('/auth/logout');
window.location.href = '/login';
window.location.href = `${process.env.basePath || ''}/login`;
}
removeClientAuthToken();