diff --git a/components/Layout.tsx b/components/Layout.tsx index 612cf6c12..6923e0cfd 100644 --- a/components/Layout.tsx +++ b/components/Layout.tsx @@ -137,18 +137,26 @@ const MainNavLink = ({ className?: string; }) => { const router = useRouter(); + const isActiveNav = extractPathWithoutFragment(router.asPath) === uri; + return ( {label} @@ -201,7 +209,7 @@ const MainNavigation = () => { @@ -290,7 +298,11 @@ const MobileNav = () => { isActive={section === 'docs'} /> - +