It looks like VE is adding empty link= params to gallery images, which then become unclickable and are lost from the sequence of images in full screen Media Viewer.
Here, gallery was created manually with two images, then two more images were added from VE.
Steps to replicate the issue (include links if applicable):
- Edit a page with the visual editor
- Use the Insert option
- Use the gallery option
- Insert a gallery of images
What happens?:
- The images are not clickable, as the visualeditor includes an empty link= parameter on their markup
What should have happened instead?:
- The images should be able to be followed
- The |link= parameter was never requested and should not be inserted
Software version (skip for WMF-hosted wikis like Wikipedia):
production wmf
Other information (browser name/version, screenshots, etc.):
Example edit: https://test.wikipedia.org/w/index.php?title=VE_gallery_empty_link&diff=583647&oldid=583646