Last modified: 2013-06-24 16:04:16 UTC
would you please redirect
You could apply this to *any* main page, such as requesting
http://commons.wikimedia.org/wiki/Hauptseite to link to
I don't see a special case for Farsi/Persian here.
Maybe for non-logged in users it is a good idea, but for logged in users this sounds like a potential WONTFIX as there are plans to set the prefered language via UniversalLanguageSelector once that is deployed on more wikis).
I mean for all RTL languages for example if you set he for your default language if you click on main page still it is LTR but for de it doesn't have any problem
this problem is major for RTL languages that their main page should be RTL
I will change this request for RTL language
in fa.wiki we use https://www.mediawiki.org/wiki/Snippets/Direct_imagelinks_to_Commons and all user redirected to commons and it is not good to have different direction in a site!
This is not a MediaWiki bug, but a feature request for a Wikimedia website. Hence the change of bug settings.
One possible solution will be to add a JS to MediaWiki:Common.js on Commons project that will automatically redirect users if they are landing on one of the non-english Main Pages. In that case, this is not even a bug that has to be handled on bugzilla, IMHO.
No maybe user's preference is English and he redirected to commons with https://www.mediawiki.org/wiki/Snippets/Direct_imagelinks_to_Commons
we can not check users preference in JS (or I don't know how it is possible )
User options are already exposed to JS. Look at the source code of pages, and you'll see mw.loader.implement implements user.options where user's choice of language and variant is stored.