Last modified: 2014-03-07 11:44:11 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T52272, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 50272 - "Language changed from X" cannot be opened in a new window
"Language changed from X" cannot be opened in a new window
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
UniversalLanguageSelector (Other open bugs)
unspecified
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-06-27 06:11 UTC by Liangent
Modified: 2014-03-07 11:44 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2013-06-27 06:11:06 UTC
So mid-clicking (= open in new tab) works.
Comment 1 Siebrand Mazeland 2013-07-01 09:02:48 UTC
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.
Comment 2 Liangent 2013-07-01 09:33:46 UTC
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
Comment 3 Pau Giner 2013-09-02 11:46:09 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links