Last modified: 2012-07-25 19:49:00 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 T40601, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38601 - Page script conversion not followed by API
Page script conversion not followed by API
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Internationalization (Other open bugs)
1.20.x
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-23 14:36 UTC by Nikola Smolenski
Modified: 2012-07-25 19:49 UTC (History)
5 users (show)

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


Attachments

Description Nikola Smolenski 2012-07-23 14:36:21 UTC
On Serbian Wikipedia, if you go to a Latin URL, and the page does not exist, and the URL can be converted to Cyrillic, and the Cyrillic page does exist, you will be redirected to the Cyrillic page.

For example, go to Latin URL http://sr.wikipedia.org/wiki/J-20_Kraguj and MediaWiki will properly redirect you to Cyrillic URL http://sr.wikipedia.org/wiki/%D0%88-20_%D0%9A%D1%80%D0%B0%D0%B3%D1%83%D1%98 (the page [[J-20_Kraguj]] doesn't exist but [[Ј-20 Крагуј]] does).

Now, if you go to http://sr.wikipedia.org/w/api.php?action=query&query=langlinks&titles=J-20_Kraguj you would expect that it does the same (normalize page name to Cyrillic and display langlinks from [[Ј-20 Крагуј]]) but instead it tries to get langlinks from [[J-20_Kraguj]] and returns an empty list of languages.

Among other things, this means that if you link to the Latin URL from QRpedia (which is highly desirable, since the URLs are much shorter) it will not be able to fetch the list of languages and lead you to your desired language.
Comment 1 matanya 2012-07-23 14:43:36 UTC
this is relevant to many non-latin wikis.
Comment 2 db [inactive,noenotif] 2012-07-25 19:49:00 UTC
Use converttitles of action=query

http://sr.wikipedia.org/w/api.php?action=query&prop=langlinks&titles=J-20_Kraguj&converttitles=

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


Navigation
Links