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:
Fomafix 2021-08-31 13:33:01 +00:00 committed by Umherirrender
parent 9ce4bee8f1
commit 9acd8edf62

View file

@ -132,6 +132,7 @@ class CategoryTreePage extends SpecialPage {
'name' => 'target',
'label-message' => 'categorytree-category',
'namespace' => NS_CATEGORY,
'default' => str_replace( '_', ' ', $this->target ),
],
'mode' => [