Issue Bug Closed

#89035URLs with invalid language path segment are redirected to default language

Helmut Hummel 08/28/19, 19:13 updated 08/29/19, 12:18

Description

Given a site configuration with two languages and their base paths ‘/dk/’ and ‘/en/’ exist.
Given ‘/dk/’ is the path for the default language

When a URL without path is requested (‘/’)
I would expect to see a 307 redirect to ‘/dk/’, which is what also actually happens.

But:

When a URL is requested that has no matching language segment (e.g. ‘/foo/’)
I would expect to see a 404 response.

What actually happens is a 307 redirect response to ‘/dk/’.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.