Muut
July 27, 2016, 3:35pm
1
Hi,
I found that redirect_trailing_slash: false (which is really odd) redirects /grav to /grav/en/, which is what I want.
I would like this to work for all the routes I have, for example:
/grav/premium should redirect to /grav/en/premium/ - (current redirect is: /grav/en/premium)
/grav/en/premium should redirect to /grav/en/premium/ - (current redirect is: /grav/en/premium)
Is it possible?
Thanks
Muut
July 27, 2016, 5:10pm
2
I think redirect_trailing_slash actually works ONLY if it’s set to true, so it would redirect a URL with a trailing slash to the URL without it.
If set to false, nothing happens. It’s not working at the opposite (it’s not going to redirect non-trailing to trailing slash)
The fact that multilanguage adds en/ to the home page, but not to inner pages, is another thing AFAIK, but not related to redirect_trailing_slash.
Muut
July 27, 2016, 5:21pm
3
@flavio but when I do redirect_trailing_slash: true, then /grav redirect to /grav/en… which is weird. I need to setup it back to false in order to have /grav/en/. I’m using Grav v1.1.1