Last modified: 2014-07-20 10:26:21 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 T12093, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 10093 - Interwiki redirection should preserve request string
Interwiki redirection should preserve request string
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.11.x
All All
: Low enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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 "en.wikipedia.org/w/index.php?title=fr:pomme&action=edit", which redirects to "fr.wikipedia.org/wiki/pomme" (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.


Navigation
Links