Skip to content

Commit 7ee745a

Browse files
committed
fix(#385 | nextjs-template): allow public access to explore page when logged out
1 parent 0edde67 commit 7ee745a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/create-hypergraph/template-nextjs/Components

apps/create-hypergraph/template-nextjs/Components/Layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export function Layout({ children }: Readonly<{ children: React.ReactNode }>) {
2323
const { redirectToConnect, logout } = useHypergraphApp();
2424

2525
useLayoutEffect(() => {
26-
if (pathname.startsWith('/login') || pathname.startsWith('/authenticate-success') || pathname === '/') {
26+
if (pathname.startsWith('/login') || pathname.startsWith('/authenticate-success') || pathname === '/' || pathname === '/explore-public-knowledge') {
2727
return;
2828
}
2929

0 commit comments

Comments
 (0)