From 7ee745aae25bbcbeeb808962fe4635f893e61f3f Mon Sep 17 00:00:00 2001 From: Hashir Date: Tue, 29 Jul 2025 21:54:00 +0530 Subject: [PATCH] fix(#385 | nextjs-template): allow public access to explore page when logged out --- apps/create-hypergraph/template-nextjs/Components/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/create-hypergraph/template-nextjs/Components/Layout.tsx b/apps/create-hypergraph/template-nextjs/Components/Layout.tsx index fc5cd3fe..67abf35c 100644 --- a/apps/create-hypergraph/template-nextjs/Components/Layout.tsx +++ b/apps/create-hypergraph/template-nextjs/Components/Layout.tsx @@ -23,7 +23,7 @@ export function Layout({ children }: Readonly<{ children: React.ReactNode }>) { const { redirectToConnect, logout } = useHypergraphApp(); useLayoutEffect(() => { - if (pathname.startsWith('/login') || pathname.startsWith('/authenticate-success') || pathname === '/') { + if (pathname.startsWith('/login') || pathname.startsWith('/authenticate-success') || pathname === '/' || pathname === '/explore-public-knowledge') { return; }