This commit is contained in:
Benjamin Toby
2025-07-20 11:15:18 +01:00
parent 668b596402
commit d586c56bd3
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -80,7 +80,8 @@ export function twuiAddActiveLinksFn({
const linkAttr = linkEl.getAttribute("href");
if (window.location.pathname === "/") {
if (window.location.pathname === "/" && linkAttr == "/") {
linkEl.classList.add("active");
} else if (
isLinkStrict &&
linkEl.getAttribute("href") === window.location.pathname