We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32a7c86 commit 0cc2a2bCopy full SHA for 0cc2a2b
src/components/overrides/Sidebar.astro
@@ -95,7 +95,7 @@ async function handleGroup(group: Group): Promise<SidebarEntry> {
95
label: group.label,
96
order: group.order,
97
attrs: {},
98
- isCurrent: indexLink.href.slice(1, -1) === Astro.params.slug,
+ isCurrent: Astro.url.pathname.startsWith(indexLink.href),
99
} as Link;
100
}
101
0 commit comments