diff --git a/src/client/components/NavItem.tsx b/src/client/components/NavItem.tsx index 470764b..90af531 100644 --- a/src/client/components/NavItem.tsx +++ b/src/client/components/NavItem.tsx @@ -8,7 +8,7 @@ export const NavItem: React.FC<{ }> = React.memo((props) => { const location = useLocation(); - const isCurrent = location.pathname === props.to; + const isCurrent = location.pathname.startsWith(props.to); return (