Page MenuHomePhabricator

Item titles in search result should respect user's variant settings
Closed, ResolvedPublic

Description

STEPS

  1. iPhone preferred languages: zh-hant, en-US, zh-TW, ja
  2. Wikiapp's my languages: Chinese, Japanese, English
  3. Wikiapp "Show languages on search" is ON
  4. Search "東大寺" with language 中文 selected (see green rectangle in screenshot)

IMG_3791.PNG (2×1 px, 328 KB)

ACTUAL
I still see two items' title shown in Simp. Chinese (see red rectangle in above screenshot). But click them will correctly load the Trad. Chinese content.

EXPECTED
Search result list's item title should be Trad. Chinese if user searches in Trad. Chinese

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

It seems it's right. ’東大寺‘ is a redirect of the target's page which the page's title is '东大寺'. The picture shows that ‘重新导向自:東大寺’ which means 'redirect from 東大寺'.

But it's intersting that the page called '东大寺_(天祝)' also was searched by keyword '東大寺'. Maybe the source code of '东大寺_(天祝)' has the keyword, so it's matched by fullindex's search.

Arthur2e5 renamed this task from Search result list's item title should be Trad. Chinese if user searches in Trad. Chinese to Item titles in search result should respect user's variant settings.Mar 28 2017, 1:43 AM

Same issue on Android, seems to be a search api issue as mentioned on related ticket T134967

JMinor triaged this task as Medium priority.Jun 25 2019, 6:45 PM

Note for iOS folks if the issue is still reproducible:

We can use &prop=info&inprop=varianttitles to get the varianttitles, and use the current search languageCode to match the correct title for the result.