Last modified: 2014-03-07 11:44:11 UTC
So mid-clicking (= open in new tab) works.
Thanks for your report, Liangent. Can you please have a look at https://www.mediawiki.org/wiki/How_to_report_a_bug and update with report with more information that will allow us to look into this more closely? In this case steps to reproduce with observed and expected behavior would be a good point to start at. Thanks for understanding.
Repro: 1. Go to https://zh.wikipedia.org/wiki/Special:%E7%9B%91%E8%A7%86%E5%88%97%E8%A1%A8 2. Use ULS to switch to English 3. A tooltip is shown, saying "Language changed from 中文(中国大陆)" 4. Mid click "中文(中国大陆)", a new page at https://zh.wikipedia.org/wiki/Special:%E7%9B%91%E8%A7%86%E5%88%97%E8%A1%A8?setlang=en# is shown, which doesn't really do something Expected: The new page is at https://zh.wikipedia.org/wiki/Special:%E7%9B%91%E8%A7%86%E5%88%97%E8%A1%A8?setlang=zh-cn
The issue seems to affect any language (so I renamed the bug to make it more generic). When a user is shown the "Language changed from X", she expects to view the page in language X (previous language). This is true when clicking on the link but it is not the case when it is opened in a new window (either using right-click menu "open in new window" option or with keyboard shortcut combination). When opening the link in a new window the page is opened in the current language instead of the previous language as expected. The issue seems to be produced by the fact that the underlying link is pointing to the current page (href="#") and relies on JS for the language switch functionality.