Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Site.yaml routes ignored

Started by Muut Archive 10 years ago · 2 replies · 344 views
10 years ago

Hi,
in my multi-language grav project the routes defined in site.yaml are ignored or not working.

e.g.
//localhost/grav/en-US/something/en-US/else
should be routed to
//localhost/grav/en-US/something/else

therefore I created the following routes block in site.yaml as described in http://learn.getgrav.org/content/routing

TXT
routes:
  /something/en-US/(.*): '/something/$1'

I tried to configue it via admin plugin and without regex but nothing worked.

When I configure the default route in the page itself, it works perfectly.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2954 9 years ago
Archive · by Muut Archive, 9 years ago
3 1120 9 years ago