Language-based redirect only works when 1 browser language set

First I’d like to confirm that the issue is still there. If I there is more than one language in the Accept-Language header, the redirects do not work.

Here are my redirects:

/    /fr    302    Language=fr
/    /en    302    Language=en
/    /de    302

Here’s the header:

accept-language: en-US,en;q=0.9

But I am redirected to /de.

It’s also interesting that this language header is a default one (I just installed Chromium). And this means that the language redirects almost never work.

Second, I’d like to ask the Netlify team to update the relevant documentation. Could you please do this? I spent quite some time trying to understand why redirects do not work as described in the docs.

1 Like