Skip to content

Commit

Permalink
ignore JS only links when simplifying the sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Nov 9, 2021
1 parent fb36ed4 commit 63c9c46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/sidebar.js
Expand Up @@ -141,7 +141,7 @@ jQuery(function () {
* and use a direct link.
*/
var $links = jQuery($wrap[0]).find('a');
if ($links.length == 1) {
if ($links.length === 1 && $links.first().attr('href') !== '#') {
$toggler.children().first().attr('href', jQuery($links[0]).attr('href'));
} else {
$wrap.insertAfter($me);
Expand Down

0 comments on commit 63c9c46

Please sign in to comment.