Hugo

Disable the default language

Hi,

Does it exist any way to disable the default language completely? If I have 3 languages, let’s say EN, ES, PT, I must have one default (english if not selected) and then my site becomes:

http://example.com/
http://example.com/es
http://example.com/pt

The site http://example.com/en exist, but references in sitemap, etc points to the default without the language prefix. I would love to make it disappear and have just http://example.com/ where you pickup the language, and everything continues on the specific language site. The default, basically, should not exist.

Cheers
LM

Found the answer, sorry

defaultContentLanguageInSubdir: true

2 Likes