This mirrors the PHP parser's behavior, and makes sense from a UI perspective too. We need to remember the original (non-normalized) target source, but this is likely already covered with the shadowing we have. The link text contains the interwiki prefix, and should match with the original target so that a simple wiki link like [[mw:Foo]] will round-trip properly.
Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=57019