Skip to content

Commit

Permalink
To fix the navbar highlight.
Browse files Browse the repository at this point in the history
  • Loading branch information
vennilamahalingam committed Aug 2, 2023
1 parent 8255312 commit bfbdb97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/docs/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<SidebarPost
Expand Down

0 comments on commit bfbdb97

Please sign in to comment.