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 prints http://domain.com/en/about/
at http://domain.com/en/about/ it prints http://domain.com/about/
relLangURL creates URLs to the current language. The URLs you get inside the .Translations (which points to the other language) range is already ready to go and doesn’t need any relLangURL (in fact, that is just plain wrong).
relLangURL is meant as a helper to create URLs to taxonomies and the home page etc.