Page MenuHomePhabricator

Image redirects from the shared repo don't show "redirected from"
Open, MediumPublicFeature

Description

Author: Bryan.TongMinh

Description:
Image redirects from the shared repo don't show "redirected from". See http://nl.wikipedia.org/wiki/Afbeelding:BSicon_leer.svg


Version: 1.13.x
Severity: enhancement
URL: http://nl.wikipedia.org/wiki/Afbeelding:BSicon_leer.svg

Details

Reference
bz14117

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:09 PM
bzimport set Reference to bz14117.

When an a redirected image name is used instead of the actual image name, the link behaves different from article redirects. The link points directly to the actual image name, so that the linked image name does not appear in the markup (and the markup image name does not appear on the html page).

Image redirects should behave like article redirects, with links pointing to the redirect name and a message pointing out the fact that it was redirected when the actual image page is served up.

Assigned: vasilievv

vasilievv added all this redirect functionality. Assigning issue to him for comments and hope he can resolve this issue.

Reverted in r45258

Seems to be bizarrely adding a "redirected from" subtitle to *every* shared image page view, instead of to redirects. WTF?

nykevin.norris wrote:

why shouldn't Image redirects behave like Template redirects?

  • Bug 18016 has been marked as a duplicate of this bug. ***

(In reply to comment #5)

why shouldn't Image redirects behave like Template redirects?

Because Image/File redirects (especially on Commons) are used to create language-specific descriptive file names for use on other wikis, and because images produce mouse-over text of the file name. If a given wiki is intentionally using a redirect file name rather than the original, then they would benefit from have the mouse-over text be that of the redirect, and also from being able to click on an image and know from the image page what the markup was (e.g., so that the image may be removed).

See http://en.wikipedia.org/wiki/User:Ragesoss/Image_redirect_bug for an example.

rene.kijewski wrote:

A further problem is, that the API does not give the redirect flag for file redirects:
http://de.wikipedia.org/w/api.php?action=query&prop=info&inprop=&titles=File:Sin%20escudo.svg

(In reply to comment #8)

A further problem is, that the API does not give the redirect flag for file
redirects:
http://de.wikipedia.org/w/api.php?action=query&prop=info&inprop=&titles=File:Sin%20escudo.svg

That would seem to indicate that page_is_redirect isn't set to 1 for image redirects.

rene.kijewski wrote:

(In reply to comment #9)

That would seem to indicate that page_is_redirect isn't set to 1 for image
redirects.

More strangely it is set. (At least on the toolserver)

  • Bug 20770 has been marked as a duplicate of this bug. ***

Bryan.TongMinh wrote:

Fixed in r56893.

  • Bug 35615 has been marked as a duplicate of this bug. ***
  • Bug 41885 has been marked as a duplicate of this bug. ***

@vvv: This issue has been assigned to you a while ago.
Could you please provide a status update and inform us whether you are still working (or still plan to work) on this issue?
Only in case you do not plan to work on this issue anymore, should you be removed as assignee (via 'Reassign / Claim' in the 'Action' dropdown )? Thanks!

Aklapper removed vvv as the assignee of this task.Nov 18 2018, 2:40 PM
Aklapper added a subscriber: vvv.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM