Gopher
FUNCTIONS

absLangURL

Adds the absolute URL with correct language prefix according to site configuration for multilingual.

Syntax

absLangURL INPUT

Both absLangURL and relLangURL are similar to their absURL and relURL relatives but will add the correct language prefix when the site is configured with more than one language.

So for a site baseURL set to https://example.com/hugo/ and the current language is en:

{{ "blog/" | absLangURL }} → "https://example.com/hugo/en/blog/"
{{ "blog/" | relLangURL }} → "/hugo/en/blog/"