1---
2title: relLangURL
3description: Adds the relative URL with correct language prefix according to site configuration for multilingual.
4date: 2017-02-01
5publishdate: 2017-02-01
6lastmod: 2017-02-01
7keywords: [multilingual,i18n,urls]
8categories: [functions]
9menu:
10  docs:
11    parent: "functions"
12signature: ["relLangURL INPUT"]
13workson: []
14hugoversion:
15relatedfuncs: []
16deprecated: false
17aliases: []
18---
19
20`absLangURL` and `relLangURL` functions 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. (See [Configuring Multilingual][multiliconfig].)
21
22So for a site  `baseURL` set to `https://example.com/hugo/` and the current language is `en`:
23
24```
25{{ "blog/" | absLangURL }} → "https://example.com/hugo/en/blog/"
26{{ "blog/" | relLangURL }} → "/hugo/en/blog/"
27```
28
29[multiliconfig]: /content-management/multilingual/#configuring-multilingual-mode
30