diff --git a/src/app/(app)/components/SidebarMenuList.tsx b/src/app/(app)/components/SidebarMenuList.tsx index 9ee16d3c8..ca41f3b04 100644 --- a/src/app/(app)/components/SidebarMenuList.tsx +++ b/src/app/(app)/components/SidebarMenuList.tsx @@ -32,7 +32,15 @@ export default function SidebarMenuList({ items, label = 'Dashboard' }: SidebarM {items.map(item => { - const isActive = pathname === item.url || pathname.startsWith(item.url + '/'); + const isActive = + pathname === item.url || + (pathname.startsWith(item.url + '/') && + !items.some( + other => + other.url !== item.url && + other.url.startsWith(item.url + '/') && + (pathname === other.url || pathname.startsWith(other.url + '/')), + )); return (