diff --git a/website/src/pages/docs/[...slug].tsx b/website/src/pages/docs/[...slug].tsx index 314b5f7d2..2394029a2 100644 --- a/website/src/pages/docs/[...slug].tsx +++ b/website/src/pages/docs/[...slug].tsx @@ -223,7 +223,7 @@ function SidebarRoutes({ const href = '/docs/[...slug]'; const pagePath = removeFromLast(path!, '.'); const pathname = addTagToSlug(pagePath, tag); - const selected = slug.startsWith(pagePath); + const selected = (slug === pagePath); const route = { href, path, title, pathname, selected }; return (