fix: prevents duplicate active nav indicators (#7943)
This commit is contained in:
@@ -88,7 +88,8 @@ export const DefaultNavClient: React.FC = () => {
|
||||
LinkWithDefault) as typeof LinkWithDefault.default
|
||||
|
||||
const LinkElement = Link || 'a'
|
||||
const activeCollection = pathname.startsWith(href)
|
||||
const activeCollection =
|
||||
pathname.startsWith(href) && ['/', undefined].includes(pathname[href.length])
|
||||
|
||||
return (
|
||||
<LinkElement
|
||||
|
||||
Reference in New Issue
Block a user