Page MenuHomePhabricator

[[Special:MyLanguage/Special:MyLanguage/Something]] leads to a blank page
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • You just get a completely blank page

What should have happened instead?:

  • Special:MyLanguage should handle self-references/loops more graciously by removing any repeats "Special:MyLanguage" before trying to resolve the URL

This is most noticeable when you visit a plain [[Special:MyLanguage]] on incubatorwiki or metawiki; on those wikis, the main page (via MediaWiki:Mainpage) is set to "Special:MyLanguage/Main page", which essentially leads Special:MyLanguage to double (even if it's not visible).

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

jhsoby renamed this task from Special:MyLanguage/Special:MyLanguage/Something leads to a blank page to [[Special:MyLanguage/Special:MyLanguage/Something]] leads to a blank page.Sep 6 2023, 2:22 PM

This seems to happen with any special page title on metawiki:

I’m tempted to call this “garbage in, garbage out” (special pages can’t have different language versions), but I guess it would be more useful for Special:MyLanguage to just silently redirect to the special page without doing anything (which, in the special case of double Special:MyLanguage, would do what you want, I think).

That said, this doesn’t seem to happen on my local wiki, nor on English Wikipedia: on enwiki, all three links mentioned above result in the main page. (The same thing happens on testwiki, so it’s not due to different train versions either.) So this issue seems to be limited to multilingual wikis, though it’s not clear to me which config setting “multilingual” corresponds to.

This task (just like T196861) is also duplicate of T164357 (which is the oldest task).

That said, this doesn’t seem to happen on my local wiki, nor on English Wikipedia: on enwiki, all three links mentioned above result in the main page. (The same thing happens on testwiki, so it’s not due to different train versions either.) So this issue seems to be limited to multilingual wikis, though it’s not clear to me which config setting “multilingual” corresponds to.

It's this one: https://meta.wikimedia.org/wiki/MediaWiki:Mainpage. (whether we can call it config hack or not)