Closed
Bug 677478
Opened 14 years ago
Closed 12 years ago
Search is broken when preferred language is not English
Categories
(developer.mozilla.org Graveyard :: Localization, defect)
developer.mozilla.org Graveyard
Localization
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: stef, Unassigned)
References
Details
(Whiteboard: [type:bug])
If I have some language codes (other than en-US, en) listed at first place in intl.accept_languages (like: pl, en-us, en) then the search is broken.
When I try to search I get a bunch of redirects and and the whole trip ends on the main page (for the first locale in accept languages).
Steps:
1. Set the intl.accept_languages pref to "pl, en-us, en"
2. Enter developer.mozilla.org in the address bar and press enter.
GET / HTTP/1.1
HTTP/1.1 301 Moved Permanently
Location: https://developer.mozilla.org/
GET / HTTP/1.1
HTTP/1.1 301 MOVED PERMANENTLY
Location: https://developer.mozilla.org/pl/
GET /pl/ HTTP/1.1
HTTP/1.1 301 Moved Permanently
Location: https://developer.mozilla.org/pl
GET /pl HTTP/1.1
HTTP/1.1 200 OK
(https://developer.mozilla.org/pl loaded, yay!)
3. Enter foobar in search textarea and press enter…
GET /search?q=foobar HTTP/1.1
HTTP/1.1 301 MOVED PERMANENTLY
Location: https://developer.mozilla.org/pl/search?q=foobar
GET /pl/search?q=foobar HTTP/1.1
HTTP/1.1 302 Found
Location: https://developer.mozilla.org/
GET / HTTP/1.1
HTTP/1.1 301 MOVED PERMANENTLY
Location: https://developer.mozilla.org/pl/
GET /pl/ HTTP/1.1
HTTP/1.1 301 Moved Permanently
Location: https://developer.mozilla.org/pl
GET /pl HTTP/1.1
HTTP/1.1 200 OK
(https://developer.mozilla.org/pl was loaded once again…)
4. See 3.
BTW: it was 9 request trip… (should be 2-3)
Updated•13 years ago
|
Component: Website → Localization
Updated•13 years ago
|
Whiteboard: bug
Updated•12 years ago
|
Whiteboard: bug → [type:bug]
Comment 1•12 years ago
|
||
Does this still happen?
| Reporter | ||
Comment 2•12 years ago
|
||
No, it does not - I did not check redirects but in general search works for me now.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•