Fixed a bug that double percent-encoding on Special:CategoryTree

Special:CategoryTree shows wrong link to parent category that containing string that need percent-encoding.
Changed getPartialURL() to getDBkey() on CategoryTree.php. getPartialURL() returns a percent-encoded URL and getDBkey() returns no encoded URL.

Bug: T253621
Change-Id: Idffb8ffece88a1d726075ffee9d64e6e05ed4e52
This commit is contained in:
Yuukin256 2020-05-27 16:50:33 +09:00
parent d386dd7fdb
commit b3fa4441a0

View file

@ -552,7 +552,7 @@ class CategoryTree {
$special,
$t->getText(),
[ 'class' => 'CategoryTreeLabel' ],
[ 'target' => $t->getPartialURL() ] + $this->mOptions
[ 'target' => $t->getDBkey() ] + $this->mOptions
);
$s .= Xml::closeElement( 'span' );
}