mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-30 11:06:55 +00:00
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:
parent
d386dd7fdb
commit
b3fa4441a0
|
@ -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' );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue