I’ve noticed that on my site, I have a strange behaviour with relLangURL
.
Say I have a page called: about.md
which is as a base in German and has a translation in English about.en.md
, both at the root of the content folder.
Considering the following snippet:
{{ range .Translations }}
{{ .Permalink | relLangURL}}
{{ end }}
- If i go to this url
http://domain.com/about/
it prints/en/about/
--> which is correct - If i go to
http://domain.com/en/about/
it prints/en/about/
--> IMO it should be/about/
Now, If I do the same with absLangURL
, it works as I would expect it to
- at
http://domain.com/about/
it printshttp://domain.com/en/about/
- at
http://domain.com/en/about/
it printshttp://domain.com/about/
Has anyone experienced this issue?