https://bugzilla.wikimedia.org/show_bug.cgi?id=66709
Bug ID: 66709 Summary: Parsoid's local interwiki link check fails on non-Wikipedia wikis Product: Parsoid Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: token-stream transforms Assignee: gwi...@wikimedia.org Reporter: at.li...@live.com.au CC: jforres...@wikimedia.org, ssas...@wikimedia.org Blocks: 45209 Web browser: --- Mobile Platform: --- 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. --- [1] http://git.wikimedia.org/blob/mediawiki%2Fservices%2Fparsoid.git/18e31a06252db3813fe844b62f15248289cdf4cb/lib%2Fext.core.LinkHandler.js#L106 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l