mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Fixed login redirect.
This commit is contained in:
parent
367e0ecdf4
commit
5c933d1c4a
2 changed files with 2 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ export function useRequireLogin(handler?: (data?: object) => void) {
|
|||
|
||||
setUser(typeof handler === 'function' ? handler(data) : (data as any)?.user);
|
||||
} catch {
|
||||
location.href = `${process.env.basePath}/login`;
|
||||
location.href = `${process.env.basePath || ''}/login`;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue