Skip to content

Multi-language redirects #2435

@parkersweb

Description

@parkersweb

We've got a live site running 1.3.1 which has the re-direct /about-us/company: /about-us. Our new site has an upgraded version of Grav (I've tried 1.5.10 and also 1.6-rc4).

On the old site that re-direct would match for all languages i.e. only the slug part is important - as per the docs (https://learn.getgrav.org/15/content/routing#site-level-routes-and-redirects). On the upgraded site however, whilst the root https://example.com/about-us/company redirects it no longer matches the language versions i.e. https://example.com/en-gb/about-us/company and https://example.com/en-us/about-us/company

If I modify the redirect to use/en-(gb|us)/about-us/company: /about-us it does correctly redirect.

Not sure if the logic has changed in this area - but any help you could give would be very much appreciated!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions