Merge "Make category links arrow link to actual categories"

This commit is contained in:
jenkins-bot 2024-10-04 23:12:32 +00:00 committed by Gerrit Code Review
commit 5ba10fcef7
2 changed files with 1 additions and 1 deletions

View file

@ -372,6 +372,7 @@ class CategoryTree {
// href and role will be added client-side // href and role will be added client-side
'class' => 'CategoryTreeToggle', 'class' => 'CategoryTreeToggle',
'data-ct-title' => $key, 'data-ct-title' => $key,
'href' => $title->getLocalURL(),
]; ];
if ( $children === 0 ) { if ( $children === 0 ) {

View file

@ -90,7 +90,6 @@
$content.find( '.CategoryTreeToggle' ) $content.find( '.CategoryTreeToggle' )
.on( 'click', handleNode ) .on( 'click', handleNode )
.attr( { .attr( {
href: '#',
role: 'button', role: 'button',
title: function () { title: function () {
return mw.msg( return mw.msg(