RCLFilters: support target page with a subpage
authorStephane Bisson <sbisson@wikimedia.org>
Wed, 13 Dec 2017 18:29:43 +0000 (13:29 -0500)
committerStephane Bisson <sbisson@wikimedia.org>
Wed, 13 Dec 2017 18:29:43 +0000 (13:29 -0500)
commitbdb1d9894743e779662688295d59747390afff4f
tree822924c2e99e9d89bf5e038204a8cb1037cd0ef1
parent8a3e9c0e08a13d83352299b314b5d19a72594a37
RCLFilters: support target page with a subpage

Correctly extract the target page when it has a subpage.
Examples (taken from unit tests):
http://host/wiki/Special:RecentChangesLinked/Moai/Sub1
http://host/wiki/Special:RecentChangesLinked/Category:Foo/Bar
http://host/w/index.php?title=Special:RecentChangesLinked/Moai/Sub1

Bug: T182734
Change-Id: Id6909728f461a3cd687185abd304f2fac5dc6000
resources/src/mediawiki.rcfilters/mw.rcfilters.UriProcessor.js
tests/qunit/suites/resources/mediawiki.rcfilters/UriProcessor.test.js