Create a link to [[bugzilla:12345]] and the link inspector thinks it's a redlink. Not great. :-(
Version: unspecified
Severity: minor
Create a link to [[bugzilla:12345]] and the link inspector thinks it's a redlink. Not great. :-(
Version: unspecified
Severity: minor
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | Release | None | T84936 Release VisualEditor-MediaWiki as "1.0" | ||
Resolved | Krenair | T72504 Link existence checker in LinkTargetInputWidget doesn't work for interwikis, language links |
gerritadmin wrote:
Change 160155 had a related patch set uploaded by Alex Monk:
Try to handle interwiki links in LinkTargetInputWidget
So it turns out this patch is basically useless because iw_api is barely populated anywhere. The MW installer doesn't do it (bug 46992), and WMF sites don't do it (maybe we should file a bug for this). Clever past-me filled the value for 'wikipedia' on my own install (which I what I had been testing against) and left it at that.
gerritadmin wrote:
Change 160155 abandoned by Alex Monk:
Try to handle interwiki links in LinkTargetInputWidget
Reason:
Pretty much depends on upstream MediaWiki core + Wikimedia interwiki cache work, see bug for info
I looked at this again and remembered that MW does nothing clever with interwiki titles. It does not try to check existence of interwiki titles. We should just be able to check to see if something is an interwiki title, and if so assume it exists.
https://phabricator.wikimedia.org/diffusion/MW/browse/master/includes/Title.php;HEAD$4284
Also, from that it looks like extensions can just decide that some titles are always blue, and VE can't do much about this without a server-side check.
Change 182988 had a related patch set uploaded (by Alex Monk):
Mark interwiki links as known in LinkTargetInputWidget
Change 182988 merged by jenkins-bot:
Mark interwiki links as known in LinkTargetInputWidget
So now "Wikipedia:thispagedoesnotexist" always returns as a matching page in the suggestions list. :-(
Change 185925 had a related patch set uploaded (by Alex Monk):
Actually perform interwiki check in MWLinkTargetInputWidget
Change 185925 merged by jenkins-bot:
Actually perform interwiki check in MWLinkTargetInputWidget