Page MenuHomePhabricator

"Content pages" link on Special:Statistics includes &hideredirects=1 though miser mode is enabled on wiki
Closed, ResolvedPublic

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

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?

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.)

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?

Aklapper renamed this task from Fix "Content pages" link on Special:Statistics when miser mode is enabled to "Content pages" link on Special:Statistics includes &hideredirects=1 though miser mode is enabled on wiki.Nov 7 2020, 4:03 PM

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

@Dcljr: On which wiki? mw.org still links, see https://www.mediawiki.org/wiki/Special:Statistics?uselang=qqx

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

@Dcljr: On which wiki? mw.org still links, see https://www.mediawiki.org/wiki/Special:Statistics?uselang=qqx

Sorry… I think you misinterpreted my remark as alluding to #1 in Rchard2scout's comment at T228552#5847995. I was referring to #1 in my comment at T228552#5851487. The MediaWiki wiki now indicates on Special:Statistics which namespaces count as content. But as your link reveals, this is just a local thing.

I can confirm that this is still cause for confusion. I recently noticed it and asked the local sysops if they could fix it, they said no and led me here.
As for solution, I second the #1 suggestion from @Rchard2scout to remove the "Content pages" link - if there's no reliable way to enumerate the content pages in WP's current state, there's no point in trying.

Change 699171 had a related patch set uploaded (by Matěj Suchánek; author: Matěj Suchánek):

[mediawiki/core@master] Avoid confusing link on Special:Statistics in miser mode

https://gerrit.wikimedia.org/r/699171

Change 699171 merged by jenkins-bot:

[mediawiki/core@master] Avoid confusing link on Special:Statistics in miser mode

https://gerrit.wikimedia.org/r/699171