diff --git a/src/components/overrides/Sidebar.astro b/src/components/overrides/Sidebar.astro index 3153b58d8b588e2..6ef236c0fc3d34b 100644 --- a/src/components/overrides/Sidebar.astro +++ b/src/components/overrides/Sidebar.astro @@ -95,7 +95,7 @@ async function handleGroup(group: Group): Promise { label: group.label, order: group.order, attrs: {}, - isCurrent: indexLink.href.slice(1, -1) === Astro.params.slug, + isCurrent: Astro.url.pathname.startsWith(indexLink.href), } as Link; }