Skip to content

Commit bf5ae75

Browse files
committed
Don’t apply external icon treatment to links with no href
fixes #3645
1 parent 5275882 commit bf5ae75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/formats/html/templates/quarto-html.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ window.document.addEventListener("DOMContentLoaded", function (event) {
590590
return filterRegex.test(href) || localhostRegex.test(href);
591591
}
592592
// Inspect non-navigation links and adorn them if external
593-
var links = window.document.querySelectorAll('a:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item)');
593+
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item)');
594594
for (var i=0; i<links.length; i++) {
595595
const link = links[i];
596596
if (!isInternal(link.href)) {

0 commit comments

Comments
 (0)