Page MenuHomePhabricator

CX is not working in the new language selector
Closed, DuplicatePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

What happens?:

  • It suggests translating to English in an English article:

image.png (184×970 px, 50 KB)

  • The link is also broken, it goes to https://فارسی.wikipedia.org/wiki/Special:ContentTranslation?from=en&to=%D9%81%D8%A7%D8%B1%D8%B3%DB%8C&page=Operation+Hyacinth

What should have happened instead?:
No English, the link should be to fa

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

It seems modules/entrypoints/ext.cx.entrypoints.uls.relevantlanguages/CxUlsEntrypoint.vue is badly broken. Passes language name (autonym) to siteMapper.getCXUrl instead of language code