diff --git a/frontend/src/components/layout/Sidebar.tsx b/frontend/src/components/layout/Sidebar.tsx index b2235008..4d774098 100644 --- a/frontend/src/components/layout/Sidebar.tsx +++ b/frontend/src/components/layout/Sidebar.tsx @@ -160,7 +160,9 @@ export function Sidebar() { /* ── Active detection ─────────────────────────────── */ const isActive = (item: NavEntry) => { - if (item.matchPaths) return item.matchPaths.some(p => location.pathname.startsWith(p)) + if (item.matchPaths) return item.matchPaths.some(p => + p === '/' ? location.pathname === '/' : location.pathname.startsWith(p) + ) if (item.href === '/') return location.pathname === '/' return location.pathname.startsWith(item.href) }