diff --git a/ui/src/components/layout/app-sidebar.tsx b/ui/src/components/layout/app-sidebar.tsx index bd5b489a..dc5da3b4 100644 --- a/ui/src/components/layout/app-sidebar.tsx +++ b/ui/src/components/layout/app-sidebar.tsx @@ -1,4 +1,4 @@ -import { Link, useLocation } from 'react-router-dom'; +import { Link, useLocation, useNavigate } from 'react-router-dom'; import { Home, Key, @@ -85,6 +85,7 @@ const navGroups = [ export function AppSidebar() { const location = useLocation(); + const navigate = useNavigate(); const { state } = useSidebar(); // Helper to check if a route is active (exact match) @@ -118,8 +119,13 @@ export function AppSidebar() { className="group/collapsible" > + {/* Click navigates to overview AND opens submenu */} - + navigate(item.path)} + > {item.icon && } {item.label}