Background
Parsoid uses a different HTML structure for images than the legacy Parser originally did. This new Parsoid format generally uses pure CSS approach to display a "magnify" button (via an ::after pseudo-element), whereas in the legacy HTML there is a dedicated <div class=magnify> element in the caption.
MediaViewer supports both variants in mmv.bootstrap.js via the processThumb() function and just below it, the processParsoidThumb() function.
As part of debugging T422586, I noticed that 1) we process thumbnails for the "Parsoid" path even when using the legacy parser, and 2) the magnify button does not work when using a custom link.
Problem
As part of T394054, $wgParserEnableLegacyMediaDOM was removed and now Parsoid and the legacy Parser both use this new format.
In T329413, the new format was changed to bring back the dedicated <div class=magnify> element for cases where the thumbnail has a custom link.
[[File:Example.jpg|thumb|link=https://wikipedia.org]]
MediaViewer does not recognize the magnify link anymore as a result of this, because this was not part of Parsoid originally.
https://www.mediawiki.org/w/index.php?title=Project:Sandbox&oldid=8349168
MediaViewer does not open when clicking "Magnify" in the image caption.