Steps to replicate the issue (include links if applicable):
- Create a page on French Wikipedia (or any wiki that uses something else than "Media" for the "Media" namespace) with [[Media:Plop.png]]
- Make a trivial/null edit on the page with VisualEditor
What happens?:
- The link is transformed to [[Média:Plop.png]]
What should have happened instead?:
- No dirty diff should happen on that link
Note
Issue raised on https://www.mediawiki.org/w/index.php?title=Topic:Xdix8k106l2jq38l