fix: language switch losing prefix + SSL redirect scheme
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 9s
Deploy Internet for Kids / Deploy (push) Successful in 6s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 3s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 2s
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 9s
Deploy Internet for Kids / Deploy (push) Successful in 6s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 3s
Deploy Internet for Kids / Promote to Latest (push) Successful in 2s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 2s
Menu links used url= which doesn't prepend language prefix. Changed to pageRef= which resolves per-language correctly. Also fixed root redirect using http:// instead of https:// by reading X-Forwarded-Proto from gateway proxy. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -28,23 +28,23 @@ contentDir = "content/de"
|
|||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
identifier = "about"
|
identifier = "about"
|
||||||
name = "Über uns"
|
name = "Über uns"
|
||||||
url = "/about/"
|
pageRef = "/about"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
identifier = "tags"
|
identifier = "tags"
|
||||||
name = "Themen"
|
name = "Themen"
|
||||||
url = "/tags/"
|
pageRef = "/tags"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
[[menus.footer]]
|
[[menus.footer]]
|
||||||
identifier = "impressum"
|
identifier = "impressum"
|
||||||
name = "Impressum"
|
name = "Impressum"
|
||||||
url = "/impressum/"
|
pageRef = "/impressum"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[[menus.footer]]
|
[[menus.footer]]
|
||||||
identifier = "privacy"
|
identifier = "privacy"
|
||||||
name = "Datenschutzerklärung"
|
name = "Datenschutzerklärung"
|
||||||
url = "/datenschutz/"
|
pageRef = "/datenschutz"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|||||||
@@ -28,23 +28,23 @@ contentDir = "content/en"
|
|||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
identifier = "about"
|
identifier = "about"
|
||||||
name = "About"
|
name = "About"
|
||||||
url = "/about/"
|
pageRef = "/about"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
identifier = "tags"
|
identifier = "tags"
|
||||||
name = "Topics"
|
name = "Topics"
|
||||||
url = "/tags/"
|
pageRef = "/tags"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
[[menus.footer]]
|
[[menus.footer]]
|
||||||
identifier = "impressum"
|
identifier = "impressum"
|
||||||
name = "Imprint"
|
name = "Imprint"
|
||||||
url = "/imprint/"
|
pageRef = "/imprint"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[[menus.footer]]
|
[[menus.footer]]
|
||||||
identifier = "privacy"
|
identifier = "privacy"
|
||||||
name = "Privacy Policy"
|
name = "Privacy Policy"
|
||||||
url = "/privacy/"
|
pageRef = "/privacy"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|||||||
@@ -28,23 +28,23 @@ contentDir = "content/fr"
|
|||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
identifier = "about"
|
identifier = "about"
|
||||||
name = "À propos"
|
name = "À propos"
|
||||||
url = "/about/"
|
pageRef = "/about"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|
||||||
[[menus.main]]
|
[[menus.main]]
|
||||||
identifier = "tags"
|
identifier = "tags"
|
||||||
name = "Sujets"
|
name = "Sujets"
|
||||||
url = "/tags/"
|
pageRef = "/tags"
|
||||||
weight = 3
|
weight = 3
|
||||||
|
|
||||||
[[menus.footer]]
|
[[menus.footer]]
|
||||||
identifier = "impressum"
|
identifier = "impressum"
|
||||||
name = "Mentions légales"
|
name = "Mentions légales"
|
||||||
url = "/mentions-legales/"
|
pageRef = "/mentions-legales"
|
||||||
weight = 1
|
weight = 1
|
||||||
|
|
||||||
[[menus.footer]]
|
[[menus.footer]]
|
||||||
identifier = "privacy"
|
identifier = "privacy"
|
||||||
name = "Politique de confidentialité"
|
name = "Politique de confidentialité"
|
||||||
url = "/politique-de-confidentialite/"
|
pageRef = "/politique-de-confidentialite"
|
||||||
weight = 2
|
weight = 2
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
map $http_x_forwarded_proto $real_scheme {
|
||||||
|
default $scheme;
|
||||||
|
https https;
|
||||||
|
}
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 80;
|
listen 80;
|
||||||
server_name _;
|
server_name _;
|
||||||
@@ -36,7 +41,7 @@ server {
|
|||||||
|
|
||||||
# Redirect unprefixed paths to /en/
|
# Redirect unprefixed paths to /en/
|
||||||
location ~ "^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health|robots|index\.xml|BingSiteAuth|[0-9a-f]{32}\.txt)" {
|
location ~ "^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health|robots|index\.xml|BingSiteAuth|[0-9a-f]{32}\.txt)" {
|
||||||
return 302 /en$request_uri;
|
return 302 $real_scheme://$host/en$request_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Clean URLs
|
# Clean URLs
|
||||||
|
|||||||
Reference in New Issue
Block a user