Currently, Parsoid runs the following check to tell if an interwiki link points at the current wiki [1]:
if ( interwikiInfo.prefix === env.conf.wiki.iwp.replace( /wiki/, '' ) ) {
Obviously this is inadequate when the wiki name doesn't end in "wiki". (It's slightly unclear to me what "iwp" is; it claims to be an interwiki *prefix*, but some of the tests set it to "enwiki", so I'm assuming it's actually the DB name.)
See http://parsoid.wmflabs.org/_rt/mediawikiwiki/VisualEditor:Local. Currently the first link is "mw:WikiLink" and the second is "mw:ExtLink", which is wrong. The PHP parser renders them identically as internal links.
Version: unspecified
Severity: normal