Steps to replicate the issue (include links if applicable):
- Navigate to: https://pl.wikipedia.org/wiki/Gmina_Eden_(hrabstwo_Carroll)
- Click on the sole image on the page
- MediaViewer opens
- Click on the "right" chevron
Another example:
- Navigate to: https://pl.wikipedia.org/wiki/Kokornak
- Click on any image on the page
- MediaViewer opens
- Click on the "right" chevron several times (to browse all images)
What happens?:
Every image is shown twice in the MediaViewer. It's worth noting, that in the first run, MediaViewer displays usually the English caption from Commons and then the proper taken from the on-wiki caption in the second run. (Interestingly, it seems that English text is loaded only from thumbs, as the photo from infobox has twice the Polish caption displayed).
(Assuming that there are images A, B, C on the page, the MediaViewer displays them in order A, B, C, A, B, C).
What should have happened instead?:
There should be only one run of images and they should have proper captions, taken from wiki (if available).
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):