I hit this in Firefox 51.0 on Debian Jessie, and simplified it down:
https://en.wikipedia.org/wiki/User:Mattflaschen/Sandbox/Washington has the wikitext:
[[Washington (state)|Washington]]
- Open https://en.wikipedia.org/wiki/User:Mattflaschen/Sandbox/Washington?veaction=edit and a separate blank page, both in VE edit mode.
- Copy the full text of User:Mattflaschen/Sandbox/Washington to the blank page.
- The target immediately shows red, because the linked page is now javascript:void(0). This is preserved in the wikitext in 'Review your changes' as well.