# How to manage links in multilingual site

**URL:** <https://discourse.gohugo.io/t/how-to-manage-links-in-multilingual-site/21316>\
**Category:** support\
**Created:** [October 18, 2019, 12:33pm UTC](https://discourse.gohugo.io/t/how-to-manage-links-in-multilingual-site/21316 "2019-10-18T12:33:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tea](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tea](https://discourse.gohugo.io/u/tea)\
**Post date:** [October 18, 2019, 12:33pm UTC](https://discourse.gohugo.io/t/how-to-manage-links-in-multilingual-site/21316/1 "2019-10-18T12:33:13Z")

</div>

My site is multilingual and home page is set to English language.  
On home page I have diffrent tours that user can chose.  
Link to it looks like this

```auto
<a href='/tours/circle' class="ctaLinkTours">

```

When my language is default one (English) and when I click on link it takes me to particular tour and it is on English which is fine.

But if on my home page I change language from English to Swedish. Home page URL looks like this

```auto
http://localhost:1313/swe/

```

and when I click on link `<a href='/tours/circle' class="ctaLinkTours">` it doesn’t stay Swedish it turns back to English.

**config.toml** looks like this for Swedish language

```auto
[languages.swe]
    languageName = "flagswe"
    LanguageCode = "swe"

[[languages.swe.menu.main]]
    url = "/swe/"
    name = "Hem"
    weight = -120

```

And I was thinking of add to link something like:

```auto
<a href='{{ .Params.LanguageCode }}/tours/circle' class="ctaLinkTours">

```

But is still not working as it should.

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [October 18, 2019, 12:37pm UTC](https://discourse.gohugo.io/t/how-to-manage-links-in-multilingual-site/21316/2 "2019-10-18T12:37:55Z")

</div>

Hi there,

Have a look at [`relLangUrl`](https://gohugo.io/functions/rellangurl/) and [`absLangUrl`](https://gohugo.io/functions/abslangurl/).

---

<div class="post-metadata">

**Author:** ![tea](https://avatars.discourse-cdn.com/v4/letter/t/7ea924/32.png) [@tea](https://discourse.gohugo.io/u/tea)\
**Post date:** [October 18, 2019, 12:43pm UTC](https://discourse.gohugo.io/t/how-to-manage-links-in-multilingual-site/21316/3 "2019-10-18T12:43:54Z")

</div>

Yes, that is what I needed.  
For my case it’s

`<a href='{{ "/" | relLangURL }}/tours/circle' class="ctaLinkTours">`

---

<div class="post-metadata">

**Author:** ![pointyfar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/pointyfar/32/5797_2.png) [@pointyfar](https://discourse.gohugo.io/u/pointyfar)\
**Post date:** [October 18, 2019, 12:54pm UTC](https://discourse.gohugo.io/t/how-to-manage-links-in-multilingual-site/21316/4 "2019-10-18T12:54:15Z")

</div>

You can also try `{{ "/tours/circle/" | relLangURL }}`
