From 9dcb8f3a18bfceeaba35be4c662aac150c92abfe Mon Sep 17 00:00:00 2001 From: Gajesh Naik <26431906+Gajesh2007@users.noreply.github.com> Date: Tue, 23 Jun 2026 17:19:59 -0700 Subject: [PATCH] fix(console-ui): use native sidebar navigation Avoid the broken Next Link client-router path for shell navigation so sidebar clicks always fall back to browser-native route loads. --- console-ui/src/components/Sidebar.tsx | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/console-ui/src/components/Sidebar.tsx b/console-ui/src/components/Sidebar.tsx index 72c11aca..14e559b3 100644 --- a/console-ui/src/components/Sidebar.tsx +++ b/console-ui/src/components/Sidebar.tsx @@ -1,5 +1,6 @@ "use client"; +/* eslint-disable @next/next/no-html-link-for-pages */ import { useStore } from "@/lib/store"; import { useAuth } from "@/hooks/useAuth"; import { useTheme } from "@/components/providers/ThemeProvider"; @@ -19,7 +20,6 @@ import { Sun, Moon, } from "lucide-react"; -import Link from "next/link"; import { usePathname, useRouter } from "next/navigation"; import { CommunityLinks } from "@/components/community/CommunityLinks"; @@ -41,19 +41,22 @@ export function Sidebar() { if (!sidebarOpen) return null; const isChatActive = pathname === "/"; + const closeSidebarOnMobile = () => { + if (window.innerWidth < 640) setSidebarOpen(false); + }; return (