Skip to content

Commit 08bd8d1

Browse files
committed
do not search for navLinkHref in the sidebar if it's the logo link
(cherry picked from commit 0048d62)
1 parent 7f0e33d commit 08bd8d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/project/types/website/website-navigation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,8 @@ function navigationHtmlPostprocessor(
559559
const navLinkHref = navLink.getAttribute("href");
560560

561561
const sidebarLink = doc.querySelector(
562-
'.sidebar-navigation a[href="' + navLinkHref + '"]',
562+
'.sidebar-navigation a[href="' + navLinkHref +
563+
'"]:not(.sidebar-logo-link)',
563564
);
564565
// if the link is either for the current window href or appears on the
565566
// sidebar then set it to active

0 commit comments

Comments
 (0)