You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have configure Grav to generate absolute urls (absolute_urls: true). In this case the template langswitcher.hreflang.html.twig displays incorrect urls with duplicate base (e.g. http://www.example.comhttp://www.example.com/en/example).
As a solution, uri.base should be added to the url only if absolute_urls is set to false:
Furthermore there is an error in line 12: config.languages.include_default_lang doesn't exist and should be replaced by config.system.languages.include_default_lang.
The text was updated successfully, but these errors were encountered:
I have configure Grav to generate absolute urls (
absolute_urls: true
). In this case the template langswitcher.hreflang.html.twig displays incorrect urls with duplicate base (e.g. http://www.example.comhttp://www.example.com/en/example).As a solution,
uri.base
should be added to the url only ifabsolute_urls
is set to false:Furthermore there is an error in line 12:
config.languages.include_default_lang
doesn't exist and should be replaced byconfig.system.languages.include_default_lang
.The text was updated successfully, but these errors were encountered: