mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CategoryTree
synced 2024-11-27 09:43:06 +00:00
Support short link with target in URL path
With this change the following URLs select the target Category:Foo_Bar: * Special:CategoryTree/Category:Foo_bar * Special:CategoryTree/Foo_bar in the UI selector for the category. Bug: T290070 Change-Id: I169c7c50adb5f6b279c34e44e7fdcf5b1b26c882
This commit is contained in:
parent
9ce4bee8f1
commit
9acd8edf62
|
@ -132,6 +132,7 @@ class CategoryTreePage extends SpecialPage {
|
|||
'name' => 'target',
|
||||
'label-message' => 'categorytree-category',
|
||||
'namespace' => NS_CATEGORY,
|
||||
'default' => str_replace( '_', ' ', $this->target ),
|
||||
],
|
||||
|
||||
'mode' => [
|
||||
|
|
Loading…
Reference in a new issue