I’m working on a site that was built with the previous version of Hugo, and now that we’ve upgraded to the new version with Multilingual support, we’re having some URL/alias issues. We are not trying to utilize the Multilingual features of Hugo at this time, and I’d like to disable them, but haven’t found any way to do so.
Here’s the relevant portions of the config:
{ "baseurl": "https://someurl.cloudfront.net/customer/en/", "languageCode": "en-us", "theme": "seo", "title": "Customer name here", "defaultExtension": "html", "uglyURLs": true, "canonifyurls": false, "relativeURLs": true, "enableRobotsTXT": false, "disableHugoGeneratorInject": true, "disableRSS": true, "disableSitemap": true, "metaDataFormat": "json" }
We get the following at build time, which leads me to believe that Hugo is picking up and acting on the /en/
in the baseURL:
Started building sites ... Built site for language en:
We’re getting some odd relative paths being written in alias files, where it’s inserting an unnecessary “../
” into the redirect path. My theory is that the Multilingual feature may be causing this, and I’d like to be able to disable it. Any help?
Thanks!