fix: match on href

This commit is contained in:
Christel Westerberg
2024-06-24 17:04:11 +02:00
parent a65bdebd29
commit 34724c62f3

View File

@@ -19,7 +19,7 @@ export default function Link({
const currentPageSlug = usePathname()
let isActive = currentPageSlug === href
if (partialMatch && !isActive) {
isActive = currentPageSlug.startsWith(href)
isActive = currentPageSlug === href
}
const classNames = linkVariants({
active: isActive,