Hello, I’ve been reading the code in the hugoDocs repo as well as the documentation, but I’m struggling to figure out how to force the default language code (e.g. “en”) to still keep the /en/ in its path.
My code is basically the same as what you see here: hugoDocs/config/_default/menus at master · gohugoio/hugoDocs · GitHub, except for
menus.en.toml then I write:
[[docs]] name = "About Hugo" weight = 1 identifier = "about" url = "/en/about/"
url = /about/.
The problem is that even though the English content is placed under a directory called
en in the
content directory, then it can only resolve
localhost:1313/about/ and not
localhost:1313/en/about/. It can only resolve
localhost:1313/en/about/ if I change
defaultContentLanguage to something other than
en, but then English of course won’t be the primary content loaded when visiting localhost:1313.
Any help would be much appreciated