Page MenuHomePhabricator

LanguageConverter should remember variant selection for anonymous users across different pages
Open, Needs TriagePublic

Description

Currently, if a user isn't logged in, even if they have explicitly selected a variant from the drop-down menu on one page, the preference is lost as soon as they click on a link to navigate to a different page, and it falls back to the default.. This is a pretty poor user experience, especially since e.g. in the case of zhwiki, the default is a mix of unconverted Traditional and Simplified characters if it can't be inferred from browser settings.

This also happens on MobileFrontend, which may need to be fixed separately.

Possible mitigations

  • Save the variant selection in a session or regular cookie
  • Automatically modify the URL of all internal links (wiki links, sidebar, search, etc.) to include variant information (e.g. if I'm viewing https://zh.wikipedia.org/zh-tw/維基百科, all link targets should use be prefixed with https://zh.wikipedia.org/zh-tw/ rather than with https://zh.wikipedia.org/wiki/)

Event Timeline

Restricted Application added subscribers: Cosine02, Aklapper. · View Herald TranscriptMay 13 2019, 12:24 AM
wctaiwan updated the task description. (Show Details)May 13 2019, 12:28 AM
wctaiwan updated the task description. (Show Details)May 13 2019, 12:32 AM