Skip to content

Lang specific redirect of Pages #326

@hendrikebbers

Description

@hendrikebbers

Adding a URL directly in the browser (or coming from external link) ends in huge problems:

curl -H "Accept-Language: de-DE,de" -v --head https://open-elements.com/posts/2026/03/26/java-modules-separating-contract-and-implementation/ resolves to location: /de/posts/2026/03/26/java-modules-separating-contract-and-implementation

curl -H "Accept-Language: en-US,en" -v --head https://open-elements.com/posts/2026/03/26/java-modules-separating-contract-and-implementation/ leads to x-middleware-rewrite: /en/posts/2026/03/26/java-modules-separating-contract-and-implementation

That is a critical bug since external, already existing links will not work anymore!!!!!

Metadata

Metadata

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions