Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

manually include basePath

Francis Cao9230f3cb7b18
diff --git a/src/app/(main)/App.tsx b/src/app/(main)/App.tsx
index 7700639da..ec08838d1 100644
--- a/src/app/(main)/App.tsx
+++ b/src/app/(main)/App.tsx
@@ -16,7 +16,7 @@ export function App({ children }) {
}
if (error) {
- window.location.href = '/login';
+ window.location.href = `${process.env.basePath || ''}/login`;
return null;
}
diff --git a/src/app/logout/LogoutPage.tsx b/src/app/logout/LogoutPage.tsx
index bd4717961..d66d62a98 100644
--- a/src/app/logout/LogoutPage.tsx
+++ b/src/app/logout/LogoutPage.tsx
@@ -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();