Closed Bug 409419 Opened 17 years ago Closed 17 years ago

https://uk.add-ons.mozilla.com/uk/firefox/ does not redirect correctly

Categories

(addons.mozilla.org Graveyard :: Localization, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: pascalc, Assigned: oremj)

Details

Some of the link redirects we use work for some languages, some don't :

https://uk.add-ons.mozilla.com/uk/firefox/
 -> redirects to http accept-lang choice

https://de.add-ons.mozilla.com/de/firefox/
 -> redirects to https://addons.mozilla.org/de/firefox/
I seem to recall these were hardcoded redirects and since uk is newer than de it's probably not in the list.  I'm assigning to oremj to check if this is true.  If it is, I can give a list of all languages AMO supports to add to the list.
Assignee: nobody → oremj
Yep, uk isn't in there.  The whole list would be nice.
    'cs'
    'da'
    'de'
    'en-US'
    'el'
    'es-ES'
    'eu'
    'fi'
    'fr'
    'it'
    'ja'
    'ko'
    'mn'
    'nl'
    'pl'
    'ro'
    'ru'
    'sk'
    'sq'
    'uk'
-    RewriteRule ^/(cs|da|de|en-US|es-ES|fr|it|ja|ko|pl|ro|ru|sk|sq)/(.+?)/(\d.+?)/(.*)$ https://addons.mozilla.org/$1/$2/$4 [R,L]
-    RewriteRule ^/(cs|da|de|en-US|es-ES|fr|it|ja|ko|pl|ro|ru|sk|sq)(/.*)?$ https://addons.mozilla.org/$1$2 [R,L]
+    RewriteRule ^/(cs|da|de|en-US|el|es-ES|eu|fi|fr|it|ja|ko|mn|nl|pl|ro|ru|sk|sq|uk)/(.+?)/(\d.+?)/(.*)$ https://addons.mozilla.org/$1/$2/$4 [R,L]
+    RewriteRule ^/(cs|da|de|en-US|el|es-ES|eu|fi|fr|it|ja|ko|mn|nl|pl|ro|ru|sk|sq|uk)(/.*)?$ https://addons.mozilla.org/$1$2 [R,L]

Pushed above changes live.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.