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.

Moved the redirect to else statement

Syed Abdullah50bfee33284e
diff --git a/src/app/page.tsx b/src/app/page.tsx
index 069989564..22f6bc84b 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -10,9 +10,9 @@ export default function RootPage() {
if (lastTeam) {
redirect(`/teams/${lastTeam}/websites`);
+ } else {
+ redirect(`/websites`);
}
-
- redirect(`/websites`);
}, []);
return null;