[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN
From: |
pelzflorian (Florian Pelz) |
Subject: |
bug#46807: [website] return 404 with HTTP header 'Accept-Language: zh-CN, zh' |
Date: |
Mon, 1 Mar 2021 11:49:30 +0100 |
Hello,
On Mon, Mar 01, 2021 at 11:06:59AM +0100, Ludovic Courtès wrote:
> Florian, could it be that we’re not normalizing language tags
> appropriately? Does that ring a bell?
Tobias’ analysis likely is correct. I haven’t yet build a current
berlin virtual machine to test though.
We’re not normalizing language tags at all currently. Doing URL
redirects in nginx confuses me greatly; I have no idea how to
concisely specify redirects *and* have them execute in the right
order. The many lines
(redirect "/blog/2006/purely-functional-software-deployment-model"
"/$lang/blog/2006/purely-functional-software-deployment-model/")
and similar in maintenance.git’s hydra/nginx/berlin.scm file are a bad
solution and are testament to my confusion. I would not like one line
for each package.
Regards,
Florian