Steps to replicate the issue (include links if applicable):
- Visit https://www.mediawiki.org/w/index.php?title=User:Pols12/Sandbox&oldid=5669507
- Open it with VisualEditor, add a character anywhere and review the change diff before saving.
What happens?:
VisualEditor unexpectedly turns all [[page#anchor's|text]] into [[page#anchor%27s]] as soon as [[page]] does not exist (red link), producing a dirty diff.
What should have happened instead?:
VisualEditor should not edit those links, at least when they have not been edited by the user.
Other info:
Given this Wikipedia dirty diff did not happen previously, this bug is a recent regression.


