Last modified: 2014-01-29 14:15:42 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 T62580, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60580 - foreign language prefixes in URL should redirect to canonical names, resolving using host wiki language
foreign language prefixes in URL should redirect to canonical names, resolvin...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
1.22.0
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-29 13:00 UTC by John Mark Vandenberg
Modified: 2014-01-29 14:15 UTC (History)
1 user (show)

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


Attachments

Description John Mark Vandenberg 2014-01-29 13:00:08 UTC
Coming at the problems described in bug 9040 and bug 24289 with an easy to implement fix that hopefully resolves the underlying use-cases...

Users often put language codes into URLs to switch between languages.  This always works _from_ English Wikipedia, as it uses canonical names in the URL.

If there are non-canonical names in the URL, converting them from the host wiki's language into canonical names *before* being redirected to a different wiki will allow the interwiki-target-wiki to understand the URL irrespective of its language.

i.e. currently:

http://de.wikipedia.org/wiki/Special:Watchlist redirects to https://de.wikipedia.org/wiki/Spezial:Beobachtungsliste

and

http://en.wikipedia.org/wiki/de:Special:Watchlist redirects to 
https://de.wikipedia.org/wiki/Spezial:Beobachtungsliste

\o/

However,

https://de.wikipedia.org/wiki/en:Spezial:Beobachtungsliste redirects to
https://en.wikipedia.org/wiki/Spezial:Beobachtungsliste

which is not helpful.

https://de.wikipedia.org/wiki/en:Spezial:Beobachtungsliste should redirect to
https://en.wikipedia.org/wiki/Special:Watchlist

https://de.wikipedia.org/wiki/fr:Spezial:Beobachtungsliste should (on the host wiki) be converted to https://de.wikipedia.org/wiki/fr:Special:Watchlist which would then redirect to
https://fr.wikipedia.org/wiki/Special:Watchlist which the fr.wp wiki would then redirect me to 
https://fr.wikipedia.org/wiki/Spécial:Liste_de_suivi

In addition to special pages, it would be very helpful if the same can be done for the page name messages mainpage, but a few others may also be worth doing at the same time (e.g. helppage, randompage-url)

There is a regular flow of users hitting this problem, and creating soft redirects to fix the problem.  Please see these discussions

https://en.wikipedia.org/wiki/Wikipedia:Redirects_for_discussion/Log/2014_January_14#Spezial:Beobachtungsliste

https://en.wikipedia.org/wiki/Wikipedia:Redirects_for_discussion/Log/2014_January_28#Pennfolenn.2FPenfolen

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


Navigation
Links