diff --git a/apps/web/app/_lib/sidebar.tsx b/apps/web/app/_lib/sidebar.tsx index c941c00..16bc5de 100644 --- a/apps/web/app/_lib/sidebar.tsx +++ b/apps/web/app/_lib/sidebar.tsx @@ -22,7 +22,7 @@ const SUPER_ADMIN_LINKS = [ { href: '/admin/drafts', label: 'AI Drafts' }, ]; -const PUBLIC_PATHS = ['/login', '/signup', '/onboard', '/member-login']; +const PUBLIC_PATHS = ['/login', '/onboard', '/member-login']; const ADMIN_PATHS = ['/admin']; const MEMBER_PATHS = ['/my']; const ORG_PATHS = ['/org']; @@ -43,6 +43,7 @@ export function Sidebar() { useEffect(() => { if (loading) return; + if (pathname === '/') return; if (PUBLIC_PATHS.some((p) => pathname.startsWith(p))) return; if (ADMIN_PATHS.some((p) => pathname.startsWith(p))) return; if (MEMBER_PATHS.some((p) => pathname.startsWith(p))) return; @@ -52,7 +53,7 @@ export function Sidebar() { } }, [loading, admin, pathname, router]); - if (PUBLIC_PATHS.some((p) => pathname.startsWith(p))) { + if (pathname === '/' || PUBLIC_PATHS.some((p) => pathname.startsWith(p))) { return (