Page MenuHomePhabricator

Fix "Content pages" link on Special:Statistics when miser mode is enabled
Open, Needs TriagePublic

Description

On https://www.mediawiki.org/wiki/Special:Statistics, "Content pages" links to https://www.mediawiki.org/w/index.php?title=Special:AllPages&hideredirects=1. Except &hideredirects=1 isn't operative because miser mode is enabled. Rage. If MediaWiki doesn't want to perform its basic function, the least it could do is output a correct URL that does not include a bogus URL parameter.

This issue was already reported in T173479: Special:AllPages no longer has the ability to "hide redirects", like Special:PrefixIndex (regression?), but wasn't fixed.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 19 2019, 10:39 PM

It continues to be a source of confusion. What would be a good resolution to this? I can see three possible options:

  1. Remove the link altogether from Special:Statistics
  2. Change the link to point to Special:PrefixIndex?namespace=0&hideredirects=1, which still works (but why is hiding redirects allowed there, if it's a performance issue on Special:AllPages?)
  3. Create a new special page (Special:AllPagesNoRedirects?) which can be cached in miser mode, and link to that

Are these the only options, or does anyone have a better idea?

Dcljr added a comment.Feb 5 2020, 9:13 AM

The second option would be fine for wikis using the 'any' article-count method, but I'm afraid it would be just as confusing as the current link on wikis using the 'link' method (since there's no way to filter out dead-end pages in the list).

ISTM the best solution (that has a chance of actually happening) would be to reveal on Special:Statistics

  1. which namespaces contain content, and
  2. which article-counting method the wiki is using (i.e., whether pages need to be linked or not).

The first bit of info would probably best be presented on a new special page that Special:Statistics could link to. The second could easily be revealed in a short sentence or phrase on Special:Statistics itself.

If we give users this information then we can link to Special:PrefixIndex?namespace=0&hideredirects=1 on all wikis, and hopefully it won't be as confusing to users.

(Sorry for somewhat "hijacking" this task… I've been meaning to create a new task requesting these changes I'm describing, but I just haven't gotten around to it.)

Dcljr added a comment.May 3 2020, 3:22 PM

So, it looks like #1 (at least) in my comment above has happened.

I can't find the task that caused this change, but mw:Special:Statistics now says:

Content pages
(The main namespace, manual pages, and extension namespaces are counted as content namespaces.)

Can someone point to the relevant task?