Last modified: 2014-04-23 03:34:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T63357, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 61357 - Local interwiki links with additional non-local interwiki prefixes are not interpreted as links
Local interwiki links with additional non-local interwiki prefixes are not in...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: This, that and the other (TTO)
:
Depends on:
Blocks: 954
  Show dependency treegraph
 
Reported: 2014-02-14 02:22 UTC by This, that and the other (TTO)
Modified: 2014-04-23 03:34 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description This, that and the other (TTO) 2014-02-14 02:22:36 UTC
See https://meta.wikimedia.org/w/index.php?oldid=7485728

Since $wgLocalInterwiki = 'm' on metawiki, [[m:Test]] is correctly interpreted as a link to [[Test]].

However, for some reason, [[m:w:Test]] is not parsed as a link at all, despite being a perfectly valid alternative to [[w:Test]].
Comment 1 Gerrit Notification Bot 2014-02-14 04:44:22 UTC
Change 113329 had a related patch set uploaded by TTO:
Allow additional interwiki prefixes on local interwiki links

https://gerrit.wikimedia.org/r/113329
Comment 2 Gerrit Notification Bot 2014-04-20 14:00:25 UTC
Change 113329 merged by jenkins-bot:
Allow additional interwiki prefixes on local interwiki links

https://gerrit.wikimedia.org/r/113329
Comment 3 Bartosz Dziewoński 2014-04-20 14:09:04 UTC
Merged.

I cc'd a bunch of Parsoid people since this might require adjustments in Parsoid.
Comment 4 Gabriel Wicke 2014-04-22 18:48:53 UTC
I'm wondering a bit what the use case for this is. It's not hard to implement in Parsoid, just not sure that we should encourage baroque interwiki prefixes like this.
Comment 5 This, that and the other (TTO) 2014-04-22 22:43:00 UTC
You could ask: what's the use for local interwikis? This was evidently a bug in MediaWiki's handling of local interwiki links. A local interwiki link should be treated as if it didn't have the local interwiki prefix on it in the first place, and if it happends to contain an interwiki prefix, then so be it.

One of the main ues cases for this is cross-wiki code reuse/transclusion. A lot of these links ([[m:w:Foo]]) actually exist on Meta, but due to an unusual configuration, this bug never showed up there.

By the way, I'm pretty sure Parsoid never had this bug, so hopefully nothing should need to be changed.
Comment 6 Gabriel Wicke 2014-04-23 03:34:48 UTC
(In reply to This, that and the other from comment #5)
> One of the main ues cases for this is cross-wiki code reuse/transclusion.

I guess that makes sense for copy & paste code sharing, thanks for the explanation. Note that following such links is not very efficient, as those second-level interwikis involve another redirect which is not cached.

> By the way, I'm pretty sure Parsoid never had this bug, so hopefully nothing
> should need to be changed.

Indeed. Just verified that [[en:wikt:Foo]] works as expected in enwiki.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links