fix: redirect unprefixed paths to /en/ default language
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 13s

/about/ and /tags/ were 404ing after Docker migration since the
redirect rule was previously in the gateway nginx config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-04-02 20:50:40 +03:00
parent 61cbbc7844
commit 8da917618a

View File

@@ -27,6 +27,11 @@ server {
add_header Cache-Control "public, must-revalidate"; add_header Cache-Control "public, must-revalidate";
} }
# Redirect unprefixed paths to /en/
location ~ ^/(?!en/|de/|css/|js/|img/|favicon|android|apple|site|llms) {
return 302 /en$request_uri;
}
# Clean URLs # Clean URLs
location / { location / {
try_files $uri $uri/ $uri.html =404; try_files $uri $uri/ $uri.html =404;