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

Remove /lang prefix from the homepage only

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

From the configuration documentation, we can see that we can choose or not to include the prefix for the default lang: https://learn.getgrav.org/basics/grav-configuration

include_default_lang: true # Include the default lang prefix in all URLs

In my configuration, the default lang is en, is it possible to disable the prefix only on the homepage of the app?
For example:

Thanks

10 years ago

To my knowledge, this is not possible. If you don't get a response soon, consider creating an issue on Github. It could perhaps be incorporated in a later version.

10 years ago

Correct, now it's either included or not included, there is no "homepage-only" setting yet

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