mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
manually include basePath
This commit is contained in:
parent
f30724629c
commit
9230f3cb7b
2 changed files with 2 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue