If a page has a lot of content on it, you will sometimes be taken to the file description page for an image instead of the Media Viewer.
Workflow to reproduce:
- Go to https://commons.wikimedia.org/wiki/User:Fabrice_Florin_(WMF)/gallery
- Scroll down and click on the first image while the page is still loading
You will be taken to the description page for the image instead of the Media Viewer.
I would guess this problem is being caused by the code for the Media Viewer only being loaded after the thumbnails for the images have been loaded, because this problem tends to not be reproducible if you go back to the page after the thumbnails are cached, even if you're really quick about clicking a picture.
Version: unspecified
Severity: minor