manually include basePath
This commit is contained in:
@@ -16,7 +16,7 @@ export function App({ children }) {
|
||||
}
|
||||
|
||||
if (error) {
|
||||
window.location.href = '/login';
|
||||
window.location.href = `${process.env.basePath || ''}/login`;
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user