Page MenuHomePhabricator

MediaViewer confuses different instances of the same image on the same page
Open, LowPublic


Steps to reproduce:

  1. go to
  2. Click on the first image of the How does Media Viewer work? section.

Observe that the caption is missing.

MediaViewer actually opened the first instance of the same image (somewhat higher on the page, has no caption), but this is not obvious and can be quite confusing when the caption has important information (e.g. legend for a chart is often placed there) and the user is expecting it.

Version: unspecified
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:03 AM
bzimport added a project: MediaViewer.
bzimport set Reference to bz62039.
bzimport added a subscriber: Unknown Object (MLST).

This was why we had MediaViewer/File:Foobar.jpg/6 instead of just MediaViewer/File:Foobar.jpg in the past - I made sure the index matched, so you got the same view no matter what.

Though we could at least be cognisant of the order when opening the lightbox. Seems not difficult.

That scheme had other problems (not stable enough, not to mention ugly :)
I would still go with MediaViewer/<filename>/<index relative to other thumbnails of the same file>, with MediaViewer/<filename>/1 being aliased to MediaViewer/<filename>.

Gilles added a subscriber: Gilles.

Mass-removing the Multimedia tag from MediaViewer tasks, as this is now being worked on by the Reading department, not Editing's Multimedia team.

Change 126153 had a related patch set uploaded (by Gergő Tisza):
[WIP] Add position handling to URLs

Jdlrobson changed the task status from Open to Stalled.Oct 9 2015, 12:59 AM
Jdlrobson added a subscriber: Jdlrobson.

Patch has been a WIP for some time now.

Aklapper changed the task status from Stalled to Open.Nov 1 2020, 10:00 PM
Aklapper edited projects, added Patch-Needs-Improvement; removed Patch-For-Review.

Anyone can rebase / improve a patch, hence removing stalled status.

Appears to be affecting the example presentation of multilingual images on a Commons template. See