So, on enwiki:
https://en.wikipedia.org/wiki/Template:Categorytree_mode
#REDIRECT [[Special:CategoryTree]]
Points to https://en.wikipedia.org/wiki/Special:CategoryTree
If I ask the API for information on Special:CategoryTree
We get
<api>
<query>
<pages>
<page ns="-1" title="Special:CategoryTree" special="" />
</pages>
</query>
</api>If I ask for a normal redirect, I get a pages entry for the target
<api>
<query>
<normalized>
<n from="WP:AWB" to="Wikipedia:AWB" />
</normalized>
<redirects>
<r from="Wikipedia:AWB" to="Wikipedia:AutoWikiBrowser" />
</redirects>
<pages>
<page pageid="3619512" ns="4" title="Wikipedia:AutoWikiBrowser" touched="2012-08-18T16:12:20Z" lastrevid="506905280" counter="" length="15308" starttimestamp="2012-08-19T22:21:24Z" edittoken="a835be486a973279fa19914f0eabf91d+\">
<revisions>
<rev user="Klutzy" timestamp="2012-08-11T16:30:40Z" comment="-[[Category:Windows software]]; category for main namespace" />
</revisions>
</page>
</pages>
</query>
</api>If I ask for a page which redirects to a special page, we don't get the pages information at all, which is inconsistent.
<api>
<query>
<redirects>
<r from="Template:Categorytree mode" to="Special:CategoryTree" />
</redirects>
</query>
</api>The desired result should be something along the lines of:
<api>
<query>
<redirects>
<r from="Template:Categorytree mode" to="Special:CategoryTree" />
</redirects>
<pages>
<page ns="-1" title="Special:CategoryTree" special="" />
</pages>
</query>
</api>Version: 1.20.x
Severity: minor
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=73184