Page MenuHomePhabricator

The language selection from zhwiki does not work correctly
Open, LowPublicBUG REPORT

Description

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

  • Add Chinese (Taiwan) to the app language
  • Search "User:Cooltey and go to the page
  • Click on "Language" in the bottom navigation and select one from the language list.

What happens?:
When select the available variants, it will show an error message.

Screenshot_20240502_171025_Wikipedia Dev.jpg (2×1 px, 80 KB)
Screenshot_20240502_173005_Wikipedia Dev.jpg (2×1 px, 71 KB)

What should have happened instead?:
The app should handle the article title correctly (without sending the HTML tags when requesting the endpoints).

Software version:
50484 (2.7.50484-r-2024-04-19)

Event Timeline

"Should not show the additional language variants for non-article pages." should not be the expected behavior: users should able to switch between language variants for existed pages.

The problem might be the full page title passed to the REST API used the HTML display title instead of plain full title text (see the 2nd image attached in the task description).

"Should not show the additional language variants for non-article pages." should not be the expected behavior: users should able to switch between language variants for existed pages.

The problem might be the full page title passed to the REST API used the HTML display title instead of plain full title text (see the 2nd image attached in the task description).

Hi @Winston_Sung ,

Thank you for the comment! You are correct, the root cause of the issue was that the app is not handling the article title correctly when requesting the endpoints. I will update the ticket, thanks!

cooltey renamed this task from Do not show additional language variants in the language list when browser user talk in zhwiki to The language selection from zhwiki does not work correctly.Mon, May 6, 5:45 PM
cooltey updated the task description. (Show Details)