github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/abslangurl.md (about) 1 --- 2 title: absLangURL 3 description: Adds the absolute URL with correct language prefix according to site configuration for multilingual. 4 godocref: 5 date: 2017-02-01 6 publishdate: 2017-02-01 7 lastmod: 2017-02-01 8 categories: [functions] 9 menu: 10 docs: 11 parent: "functions" 12 keywords: [multilingual,i18n,urls] 13 signature: ["absLangURL INPUT"] 14 workson: [] 15 hugoversion: 16 relatedfuncs: [relLangURL] 17 deprecated: false 18 aliases: [] 19 --- 20 21 Both `absLangURL` and [`relLangURL`](/functions/rellangurl/) are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/relurl) relatives but will add the correct language prefix when the site is configured with more than one language. 22 23 So for a site `baseURL` set to `https://example.com/hugo/` and the current language is `en`: 24 25 ``` 26 {{ "blog/" | absLangURL }} → "https://example.com/hugo/en/blog/" 27 {{ "blog/" | relLangURL }} → "/hugo/en/blog/" 28 ```