Closed
Bug 530121
Opened 16 years ago
Closed 16 years ago
Locale detection does not work for fi on mozilla.com
Categories
(www.mozilla.org :: General, defect)
www.mozilla.org
General
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: jbergstr, Assigned: abuchanan)
References
Details
Attachments
(1 file)
|
1.03 KB,
patch
|
clouserw
:
review+
|
Details | Diff | Splinter Review |
Note: I suspect this occurs only in Finland, because if this was global, someone surely would have already reported this...
Steps to reproduce:
1. Live in Finland.
2. Go to any mozilla.com address with a subdirectory without a locale code, e.g. http://www.mozilla.com/firefox/ or http://www.mozilla.com/firefox/security/ (anything will fail except http://www.mozilla.com/).
3. A 404 "Hmmm, we’re having trouble finding that one." is shown.
Expected results:
The user is redirected to the appropriate URL (with the lc in it) either at mozilla.com or mozilla-europe.org.
Tested browsers and environments:
Fx 3.5/Windows/Linux
Fx 3.6b3/Windows
IE 8/Windows
This happens even if I use a different machine in a completely different network.
| Reporter | ||
Comment 1•16 years ago
|
||
Additional details:
1. Of course even en-US would be acceptable, but the redirect fails altogether.
2. If I type in the lc manually, a page is loaded correctly.
| Assignee | ||
Comment 2•16 years ago
|
||
I set my browser language to German, to confirm locale detection works for other languages, and was redirected correctly.
I hit,
mozilla.com/firefox/security
and was redirected to,
http://www.mozilla-europe.org/de/firefox/security/
I repeated with browser set to Finnish, and confirmed Jussi's report.
It's very odd that only Finnish wouldn't work, possibly there are other broken locales.
| Assignee | ||
Comment 3•16 years ago
|
||
CC'ing Wil, this could this be related to bug 526923
| Assignee | ||
Comment 4•16 years ago
|
||
(In reply to comment #3)
> CC'ing Wil, this could this be related to bug 526923
Er, actually, that bug only affects lang codes that are remapped, and FI is not. So, I think they are not related. Sorry.
| Assignee | ||
Comment 5•16 years ago
|
||
Ok, found the problem.
prefetch.php line 176
The firefox2 in-product page code tries to match a lang code to the _SERVER[REDIRECT_URL]. The Finnish lang code, fi, happens to match the first to letters of "firefox" which munges the REDIRECT_URL, and causes the 404
| Assignee | ||
Comment 6•16 years ago
|
||
Attachment #413668 -
Flags: review?(clouserw)
Comment 7•16 years ago
|
||
Comment on attachment 413668 [details] [diff] [review]
patch v1
Should work
Attachment #413668 -
Flags: review?(clouserw) → review+
| Assignee | ||
Comment 9•16 years ago
|
||
To QA you should do something along the lines of,
* Set your browser's locale to Finnish
* Test the root and subpages, e.g. home page and something like /firefox/security
* Test by visiting a URL with the locale already set, e.g. /fi/firefox/security
* Finnish ("fi") is the main one to test, but you could try out a couple other locales too
Hope that helps the QA folks.
This is possibly affecting a large number of Finnish users right now, so we should get this out the door soon please.
Thanks.
Severity: normal → major
[1] www-trunk.stage.mozilla.com/firefox redirected me to http://www.mozilla-europe.org/fi/firefox/
[2] http://www-trunk.stage.mozilla.com/fi/firefox/security/ redirects me to http://www.mozilla-europe.org/fi/firefox/security/
[3] http://www-trunk.stage.mozilla.com/firefox/security redirected me to http://www.mozilla-europe.org/fi/firefox/security/
[4] http://fi.www-trunk.stage.mozilla.com/fi/ works
[5] When changing to |de| (in Firefox), www-trunk.stage.mozilla.com/firefox/security redirects to http://www.mozilla-europe.org/de/firefox/security/
I think we're good here, but I'm still a bit nervous (thank goodness Raymond is working on automated tests here!)
| Assignee | ||
Comment 11•16 years ago
|
||
I'd like to push this live today, please.
What's left for QA?
(In reply to comment #11)
> I'd like to push this live today, please.
>
> What's left for QA?
Nothing -- that was what comment 10 intended to say.
| Assignee | ||
Comment 13•16 years ago
|
||
r56792 tags for production.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Jussi, can you confirm this is now working for you? Thanks!
Assignee: mozwebqa → buchanae
| Reporter | ||
Comment 15•16 years ago
|
||
Oh, sorry, I meant to confirm much earlier already but forgot... Everything's fine now. Thanks to everyone for fixing this!
Verified FIXED.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Flags: in-testsuite?
Looks like this is covered in http://viewvc.svn.mozilla.org/vc/projects/mozilla.com/trunk/tests/mozillaRewrites.php?revision=57321&view=markup, so in-testsuite+
Flags: in-testsuite? → in-testsuite+
Updated•14 years ago
|
Component: www.mozilla.org/firefox → www.mozilla.org
Updated•13 years ago
|
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in
before you can comment on or make changes to this bug.
Description
•