Last modified: 2014-07-20 10:26:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10093 - Interwiki redirection should preserve request string
Interwiki redirection should preserve request string
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2007-06-01 01:34 UTC by Jesse (Pathoschild)
Modified: 2014-07-20 10:26 UTC (History)
3 users (show)

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


Description Jesse (Pathoschild) 2007-06-01 01:34:26 UTC
{{fullurl}} only recognizes single interwiki prefixes, so that {{fullurl:w:fr:pomme}} will point to "fr:pomme" on en.wikipedia instead of "pomme" on fr.wikipedia. Since queries are not forwarded, {{fullurl:w:fr:pomme|action=edit}} links to "", which redirects to "" (notice the query's disappearance).

Ideally, {{fullurl}} should correctly parse consecutive prefixes; alternatively, wikis should forward the query parameters when redirecting to another wiki.

This is useful for crosswiki link templates that accept input interwiki links.
Comment 1 Rob Church 2007-06-20 06:22:56 UTC
Well, the problem here is not that MediaWiki's broken, per se, but that users expect multiple interwiki prefixes to resolve at once; the current behaviour relies upon interwiki redirection.
Comment 2 Jesse (Pathoschild) 2007-06-20 20:09:17 UTC
When MediaWiki redirects interwiki'ly, forwarding the full query string would work. Maybe just tack $_SERVER['QUERY_STRING'] to the URI?
Comment 3 Brion Vibber 2007-06-21 14:22:23 UTC
Well you'd want to parse it a bit, I imagine... don't want to pass on things like the title parameter. :) You also should check whether the dest URL already includes a query string, and append as necessary.
Comment 4 This, that and the other (TTO) 2014-07-20 10:26:21 UTC
This works now! Yay.

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