Skip to content

Commit

Permalink
To fix the navbar highlight. (#3856)
Browse files Browse the repository at this point in the history
  • Loading branch information
vennilamahalingam committed Sep 2, 2023
1 parent 5c01ee7 commit 0e476bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/src/pages/docs/[...slug].tsx
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

1 comment on commit 0e476bd

@vercel
Copy link

@vercel vercel bot commented on 0e476bd Sep 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

formik-docs – ./website

formik-docs-formik.vercel.app
formik-docs.vercel.app
formik-docs-git-main-formik.vercel.app
formik.org
www.formik.org

Please sign in to comment.