Page MenuHomePhabricator

Reconsider the value of getPageLanguage() and getPageViewLanguage() for redirect pages
Open, NormalPublic


Appearance: has a wrong arrow direction (compare )

Reason: Article::viewRedirect() uses page language (= kk) to render the arrow, while OutputPage uses page view language (= kk-arab from &variant= URL param) to wrap it in <div lang=" " dir=" "> which mismatch.

Fix: gerrit 63378 is changing Article::viewRedirect() to use page view language, so that problematic page will display a RTL arrow, with the hole content block rendered RTL, which don't contradict with each other.

Problem: The only content on that page is "Греффей", which is a LTR word. Why do we put it in a page with RTL layout?

Potential solution: Given the only contents on redirect pages are redirect targets, should the (view) language of redirects be defined as the language of redirect target pages (or at least, the language of target titles)?

Version: 1.22.0
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 1:53 AM
bzimport set Reference to bz50469.
bzimport added a subscriber: Unknown Object (MLST).
liangent created this task.Jun 30 2013, 6:13 PM