From 6b1dbe0e024d31b9eddf36451c7c0b393003c7a9 Mon Sep 17 00:00:00 2001 From: Marius Susanu Date: Mon, 22 Jul 2024 19:24:06 +0300 Subject: [PATCH] Fix links with filters not marked as active in the menu --- resources/assets/js/tabler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/js/tabler.js b/resources/assets/js/tabler.js index b317658..4b01e51 100644 --- a/resources/assets/js/tabler.js +++ b/resources/assets/js/tabler.js @@ -1,6 +1,6 @@ // Bar layout - Highlight active section/page [...document.querySelectorAll('aside a[href], header.top a[href]')] - .filter(el => window.location.href.split("#")[0].split("?")[0] === el.href) + .filter(el => window.location.href.split("#")[0] === el.href) .forEach(el => { while (/(nav-item|nav-link|dropdown)/.test(el.className)) { let parentContainer = el.parentElement?.parentElement;