Closed splitbrain closed 2 years ago
Hi
I've found the same error
to fix this issue it is necessary to add "base_url_simple" into langswitcher.hreflang.html.twig
{% set lang_url = base_url_simple ~ (langobj.getLanguageURLPrefix(key) ~ langswitcher.page_route ~ page.urlExtension ?: '')|rtrim('/') %}
This should be fixed in latest developer branch.
I'm running my grav site in a subdirectory
site
. I have configureden
andde
as languages.When I am on
http://localhost/site/de/page
, the followinghreflang
entries are generated (using the default partial that comes with the plugin):Clearly the non-active language is generated wrong. Might be related to #43?