Page MenuHomePhabricator

Using Special:MyLanguage to access a page that includes a #redirect only shows a blank page
Closed, DuplicatePublic

Description

This may not be a bug and if not, this is a feature request.

As of now, when accessing a redirect via Special:MyLanguage, the page returned is completely blank (translatable or not).

For example:

  • Create page "Complicated title that should be shortened"
  • Create page "CTTSBS" with content: "#redirect [[Complicated title that should be shortened]]"
  • Visit index.php?title=Special:MyLanguage/CTTSBS

Actual result: Completely blank page is shown (no source code either)

Expected result: Complicated title that should be shortened page shown (in the correct language)

Event Timeline

Aklapper changed the task status from Open to Stalled.Jun 10 2018, 10:25 PM

Hi @Danielhats, thanks for taking the time to report this and welcome to Wikimedia Phabricator!

Cannot reproduce:

Which exact MediaWiki version and which Translate version is this about?

Sorry, I mistyped my repro steps. This is the link that doesn't work:

https://test.wikipedia.org/w/index.php?title=Special:MyLanguage/CTTSBS

Correct steps:

Create page "Complicated title that should be shortened"
Create page "CTTSBS" with content: "#redirect [[Complicated title that should be shortened]]"
Visit index.php?title=Special:MyLanguage/CTTSBS

I should note that it does not matter if the redirect is [[Special:MyLanguage/]] or just [[]]

This comment was removed by Danielhats.
Danielhats changed the task status from Stalled to Open.Jun 11 2018, 1:00 AM
Aklapper renamed this task from Special:MyLanguage does not work with redirects to Using Special:MyLanguage to access a page that includes a #redirect only shows a blank page.Jun 11 2018, 8:56 AM
Aklapper updated the task description. (Show Details)
Nikerabbit subscribed.

Hmm, on a closer look I am not sure whether this is a duplicate. But I can't help but to think that these two issues are somehow related. Returning HTTP 200 with a blank page is very unusual failure case.

Vvjjkkii renamed this task from Using Special:MyLanguage to access a page that includes a #redirect only shows a blank page to yabaaaaaaa.Jul 1 2018, 1:04 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
CommunityTechBot renamed this task from yabaaaaaaa to Using Special:MyLanguage to access a page that includes a #redirect only shows a blank page.Jul 2 2018, 2:56 PM
CommunityTechBot raised the priority of this task from High to Needs Triage.
CommunityTechBot updated the task description. (Show Details)
CommunityTechBot added a subscriber: Aklapper.

On test.wp:

  • ✔ [[A]] redirects to [[B]]
  • ✔ [[Special:MyLanguage/A]] redirects to [[B]]
  • [[CTTSBS]] should redirect to [[Special:MyLanguage/Complicated title that should be shortened]] (T164357)
  • [[Special:MyLanguage/CTTSBS]] should redirect to [[Special:MyLanguage/Complicated title that should be shortened]] (this bug)

So, this is a kind of 3-steps redirection, I think this bug may have two different origins:

It (sort of) works for me: it doesn’t redirect to the target page (T164357), but it’s not blanked out, it just shows the same content as if I’ve appended &redirect=no to the URL. If I link to a redirect that doesn’t itself point to Special:MyLanguage (e.g. https://meta.wikimedia.org/w/index.php?title=Special:MyLanguage/VRT&uselang=de), it works as expected. Am I just lucky, or has this bug been inadvertently fixed?

It (sort of) works for me: it doesn’t redirect to the target page (T164357), but it’s not blanked out, it just shows the same content as if I’ve appended &redirect=no to the URL. If I link to a redirect that doesn’t itself point to Special:MyLanguage (e.g. https://meta.wikimedia.org/w/index.php?title=Special:MyLanguage/VRT&uselang=de), it works as expected. Am I just lucky, or has this bug been inadvertently fixed?

The response is empty, because MediaWiki sets a url redirect to https://test.wikipedia.org/wiki/Special:MyLanguage/Complicated_title_that_should_be_shortened - but that page itself does not has content, because it would redirect as well, but that is not done when $wgHideIdentifiableRedirects is true. The used soft redirect does not work for that redirect-redirect. But when the setting is not in affect it gives a redirect loop and the browser times out.
Maybe all special pages implement RedirectSpecialPage should be invalid redirect targets (like Special:MyPage/MyTalk already are). Or Special:MyLanguage implements some special for this, but must look for loops as well.

Maybe you should define what you mean by “the page returned is completely blank” and “[t]he response is empty”. I interpret these terms as referring to the White Screen of Death, but I don’t experience that. I get a completely normal 200 OK response with valid content that looks like this:

Screenshot_2021-12-12 CTTSBS – Wikipedia.png (706×1 px, 108 KB)

Yes, the behavior has changed: we previously got a fully blanked page (no content, even wiki’s header, menu and footer).

The behavior for Special:MyLanguage/Special:MyLanguage/Redir2 has changed too: it now leads to home page (according to my 2020 comment, it returned a blank page too).

Maybe you should define what you mean by “the page returned is completely blank” and “[t]he response is empty”. I interpret these terms as referring to the White Screen of Death, but I don’t experience that. I get a completely normal 200 OK response with valid content that looks like this:

Screenshot_2021-12-12 CTTSBS – Wikipedia.png (706×1 px, 108 KB)

Try it logged out. The page has a "resource size" of 0 with a 200 OK and does not redirect.

Can you give an explanation why it is the same issue?