https://bugzilla.wikimedia.org/show_bug.cgi?id=38601
Web browser: ---
Bug #: 38601
Summary: Page script conversion not followed by API
Product: MediaWiki
Version: 1.20-git
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Internationalization
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
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.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l