# Customize multilang url - putting the lang code last

**URL:** https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622
**Category:** support
**Created:** [March 12, 2022, 1:12pm UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622 "2022-03-12T13:12:07Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![janderssonse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/janderssonse/32/16475_2.png) [@janderssonse](https://discourse.gohugo.io/u/janderssonse)
#### Post date: [March 12, 2022, 1:12pm UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622/1 "2022-03-12T13:12:07Z")

</div>

Hi, I tried to research the forums docs and blogs, but could not find anything about this.  
Is it possible to configure Hugo in multilang so that the lang code ends up last in the url.  
i.e instead of the default  
/langcode/page/

it would be  
/page/langcode/

---

<div class="post-metadata">

### Author: ![pitifi9191](https://avatars.discourse-cdn.com/v4/letter/p/3ab097/32.png) [@pitifi9191](https://discourse.gohugo.io/u/pitifi9191)
#### Post date: [March 12, 2022, 1:38pm UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622/2 "2022-03-12T13:38:28Z")

</div>

> ### Translation by filename
> 
> Considering the following example:
> 
> 1. `/content/about.en.md`
> 2. `/content/about.fr.md`

please check this will help [Multilingual mode | Hugo](https://gohugo.io/content-management/multilingual/#translation-by-filename)

Do you have an example of a site which is currently doing this?

/ in url is similar to folders on your pc each / basically is a new folder in directory so if you make your language a folder inside your page then it is not the best or easiest solution to manage content for a language.

looking forward to bit more details on use case maybe you know something new.

thanks

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [March 12, 2022, 2:37pm UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622/3 "2022-03-12T14:37:51Z")

</div>

> [@janderssonse](#):
>
> Is it possible to configure Hugo in multilang so that the lang code ends up last in the url.

No, it is not.

---

<div class="post-metadata">

### Author: ![janderssonse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/janderssonse/32/16475_2.png) [@janderssonse](https://discourse.gohugo.io/u/janderssonse)
#### Post date: [March 13, 2022, 6:27am UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622/4 "2022-03-13T06:27:36Z")

</div>

Oki, then I understood it correct. IMHO it would it make easier to create nicer urls for hugo.

Example:  
/learn/more/gr/  
would certainly look nicer than currentl  
/learn/gr/more  
But it is what it is.

Are there any ongoing work/plans for more configurable URL-handling, or should I add a feature request issue?

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [March 13, 2022, 6:30am UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622/5 "2022-03-13T06:30:32Z")

</div>

> [@janderssonse](#):
>
> should I add a feature request issue?

The chances of this being accepted are essentially… zero.

---

<div class="post-metadata">

### Author: ![janderssonse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/janderssonse/32/16475_2.png) [@janderssonse](https://discourse.gohugo.io/u/janderssonse)
#### Post date: [March 13, 2022, 6:41am UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622/6 "2022-03-13T06:41:44Z")

</div>

> [@jmooring](#):
>
> The chances of this being accepted are essentially… zero.

Ok, because of ?

---

<div class="post-metadata">

### Author: ![janderssonse](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/janderssonse/32/16475_2.png) [@janderssonse](https://discourse.gohugo.io/u/janderssonse)
#### Post date: [March 13, 2022, 6:53am UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622/7 "2022-03-13T06:53:37Z")

</div>

Better try and fail, then to not try at all. [Configure multilang urls to postifx the langcode instead of prefix it · Issue #9663 · gohugoio/hugo · GitHub](https://github.com/gohugoio/hugo/issues/9663) 🙂

---

<div class="post-metadata">

### Author: ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)
#### Post date: [March 15, 2022, 6:53am UTC](https://discourse.gohugo.io/t/customize-multilang-url-putting-the-lang-code-last/37622/8 "2022-03-15T06:53:45Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
