diff --git a/includes/CategoryTree.php b/includes/CategoryTree.php index d814e4da..14dc8afe 100644 --- a/includes/CategoryTree.php +++ b/includes/CategoryTree.php @@ -372,6 +372,7 @@ class CategoryTree { // href and role will be added client-side 'class' => 'CategoryTreeToggle', 'data-ct-title' => $key, + 'href' => $title->getLocalURL(), ]; if ( $children === 0 ) { diff --git a/modules/ext.categoryTree/ext.categoryTree.js b/modules/ext.categoryTree/ext.categoryTree.js index 2f2c78d6..c02e7eae 100644 --- a/modules/ext.categoryTree/ext.categoryTree.js +++ b/modules/ext.categoryTree/ext.categoryTree.js @@ -90,7 +90,6 @@ $content.find( '.CategoryTreeToggle' ) .on( 'click', handleNode ) .attr( { - href: '#', role: 'button', title: function () { return mw.msg(