Page MenuHomePhabricator

mw.title.new().exists cannot convert title to language variants
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Category:人民日報 exists, Category:人民日报 is deleted. 报 converts to 報.
  • An LUA script calls mw.title.new('Category:人民日报').exists

What happens?:
It returned false

What should have happened instead?:
It should return true because Category:人民日報 exists.

Software version (skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):
Currently we have to use #ifexist parser function instead of LUA.

https://zh.wikisource.org/w/index.php?title=Module:Header&diff=prev&oldid=2332170
https://zh.wikisource.org/w/index.php?title=Special:%E6%97%A5%E5%BF%97&logid=1117713