diff --git a/docs/next/components/Sidebar.tsx b/docs/next/components/Sidebar.tsx index a59e61bdb703f..a19135cd18778 100644 --- a/docs/next/components/Sidebar.tsx +++ b/docs/next/components/Sidebar.tsx @@ -193,7 +193,7 @@ const RecursiveNavigation = ({ itemOrSection === currentSection || itemOrSection.path === asPathWithoutAnchor || (itemOrSection.children && - itemOrSection.children.find((item) => item.path === asPathWithoutAnchor)); + itemOrSection.children.find((item) => asPathWithoutAnchor.startsWith(item.path))); const expanded = Boolean(navKeysToExpanded[navKey]);