Tabzilla loads es-AR
Closed this issue · 6 comments
For some reason even having es-ES as my default locale, I get:
[01:58:54.401] GET https://mozorg.cdn.mozilla.net/es-AR/tabzilla/tabzilla.js [HTTP/1.1 200 OK 57ms]
I see es-ES exists. What do you mean by "having es-ES as my default locale" ?
Browser locale preference:
es-ES
es
en-US
en
The tabzilla url (https://mozorg.cdn.mozilla.net/tabzilla/tabzilla.js) is redirecting properly for me if I prefer es-ES: http://cl.ly/image/2z2a2W2p112w
Maybe we are doing something wrong here.
Ah, the problem is we link directly to https://mozorg.cdn.mozilla.net/es/tabzilla/tabzilla.js
and I guess that automatically redirects to es-AR
(maybe alphabetical match?). We should probably take the es
out of the url here? I'm not sure if the tabzilla behavior is a bug or not. It's probably debatable?
@pascalchevrel is the es → es-AR redirection a technical limitation?
@rlr Probably we should remove the l10n code to allow language detection as we do for the rest of the site.
please don't link directly to /es/, this is not a real locale code on the site and the technical limitation we have is that it redirects to the first es-* locale, which is es-AR, we can't have locale detection on /es/, the fallback to any es-* page available is already a hack. Just leave locale detection by not forcing a locale code in the url if what you need is locale detection.