Closed
Bug 650363
Opened 14 years ago
Closed 14 years ago
Move locale fudging out of webroot/.htaccess
Categories
(support.mozilla.org :: Code Quality, task, P3)
support.mozilla.org
Code Quality
Tracking
(Not tracked)
VERIFIED
FIXED
2.8.2
People
(Reporter: jsocol, Assigned: jsocol)
Details
(Whiteboard: [drop-htaccess])
Toward the bottom of .htaccess we've got this section:
# Redirect locales that point to one locale in SUMO.
# Kitsune does this by itself, mostly.
# Not sure about this guy: may need to special-case it in the LocaleURLMiddleware.
RewriteRule ^n[bn]\-NO/(.+)$ /no/$1 [L,R]
# Just need to move sr-CYRL above sr-LATN to get this.
RewriteRule ^sr/(.+)$ /sr-CYRL/$1 [L,R]
I don't know how accurate my comments are. Maybe adding some kind of "given this non-supported locale, go here" map and using that in LocaleURLMiddleware (we could also use it to handle other not-yet-supported but legit locales). Hopefully I'm right about Serbian.
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → james
Assignee | ||
Comment 1•14 years ago
|
||
https://github.com/jsocol/kitsune/compare/b2fda76f6^...50f3ea9e
To test, verify that /nb-NO/home and /nn-NO/home still go to /no/home, and that /sr/home still goes to /sr-CYRL/home.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Comment 2•14 years ago
|
||
All redirect as expected except the following:
/nb-NO/home >> https://support.allizom.org/nb-NO/home
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 3•14 years ago
|
||
Oops, I checked settings.py and that's actually correct--nb-NO is in the supported locales list.
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
Flags: in-testsuite?
You need to log in
before you can comment on or make changes to this bug.
Description
•