Page MenuHomePhabricator

Title::isRedirect() returns incorrect value for redirected files accessed from outside Commons
Open, Needs TriagePublic

Description

In a module debug console on Commons
= mw.title.new( "File:IMAGE.jpg" ).isRedirect returns "true"
In a module debug console on English Wikipedia
= mw.title.new( "File:IMAGE.jpg" ).isRedirect returns "false"

the file is a redirect and users outside of Commons need to be able to test for it.

Event Timeline

The issue come up when users from outside Commons are trying to delete file redirects on Commons because they are undetectable and are breaking their templates. See here.

It seems to be a problem with how file redirects in Commons are accessed in other wikis. For example, if we try to access File:冰-bronze.svg on Wiktionary, we immediately go to File:冰-bronze-warring.svg, without any indication that it was redirected.

Vvjjkkii renamed this task from Title::isRedirect() returns incorrect value for redirected files accessed from outside Commons to p5daaaaaaa.Jul 1 2018, 1:13 AM
Vvjjkkii triaged this task as High priority.
Vvjjkkii updated the task description. (Show Details)
Vvjjkkii removed a subscriber: Aklapper.
Yann renamed this task from p5daaaaaaa to Title::isRedirect() returns incorrect value for redirected files accessed from outside Commons.Jul 1 2018, 11:18 AM
Yann raised the priority of this task from High to Needs Triage.
Yann updated the task description. (Show Details)
Yann added a subscriber: Aklapper.