jayvdb triaged this task as "High" priority.
jayvdb added a comment.

https://zh.wikipedia.org/w/index.php?title=%E5%8C%99%E5%90%BB%E9%B2%9F&redirect=no
 and 
https://zh.wikipedia.org/w/api.php?titles=%E5%8C%99%E5%90%BB%E9%B2%9F&action=query&prop=info
 both consider this to be a missing page - no mention that it is understood.  
However using it in a link creates a blue link, so somehow our Link & Page 
class must also correctly understand this, and it is a quite serious problem 
that it it fails.

As discussed on https://phabricator.wikimedia.org/T57241, one solution is to 
use converttitles (added MW 1.17; https://phabricator.wikimedia.org/T26296), 
and handle the converted titles array much like we handle the normalized titles 
array
https://zh.wikipedia.org/w/api.php?titles=%E5%8C%99%E5%90%BB%E9%B2%9F&action=query&prop=info&converttitles

It appears it can be used on other Wikimedia wikis without a error, so it could 
be a default prop on any site 1.17+
https://en.wikipedia.org/w/api.php?action=query&titles=Main_Page&converttitles


TASK DETAIL
  https://phabricator.wikimedia.org/T101597

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: jayvdb
Cc: pywikipedia-bugs, zhuyifei1999, Ladsgroup, jayvdb, Legoktm, JAnD, Xqt, 
liangent, Liuxinyu970226, Aklapper, Anshoe



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to