Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

bug: logged in check is added in the useEffect (#921)

palash-signozd085506d3e16
diff --git a/frontend/src/container/AppLayout/index.tsx b/frontend/src/container/AppLayout/index.tsx
index 84f7d237e2..5a9051c215 100644
--- a/frontend/src/container/AppLayout/index.tsx
+++ b/frontend/src/container/AppLayout/index.tsx
@@ -27,6 +27,12 @@ function AppLayout(props: AppLayoutProps): JSX.Element {
}
}, [isLoggedIn, isSignUpPage]);
+ useEffect(() => {
+ if (isLoggedIn) {
+ history.push(ROUTES.APPLICATION);
+ }
+ }, [isLoggedIn]);
+
return (
<Layout>
{!isSignUpPage && <SideNav />}