The gitlab pages rendering of hugo assets requires that the relativeURLs be set to true in config.toml. I've discovered that if you are using a non-root context as your baseURL, then no matter what path you pass to the navigation links, it will construct the wrong url and result in a 404.
Example:
baseURL = "https://examplesite.com/dot/"
relativeURLs = true
# Dropdown menu
[[Languages.en.menu.main]]
weight = 4
name = "docs"
hasChildren = true
[[Languages.en.menu.main]]
parent = "docs"
name = "Installation"
url = "installation"
weight = 1
[[Languages.en.menu.main]]
parent = "docs"
name = "Billing and Pricing"
url = "billing-pricing"
weight = 2
[[Languages.en.menu.main]]
parent = "docs"
name = "Features"
url = "features"
weight = 3
This will result in the navigation url's resolving to /dot/dot/<url> or even /dot/dot/dot/<url>.
The gitlab pages rendering of hugo assets requires that the
relativeURLs
be set totrue
inconfig.toml
. I've discovered that if you are using a non-root context as your baseURL, then no matter what path you pass to the navigation links, it will construct the wrong url and result in a 404.Example:
This will result in the navigation url's resolving to
/dot/dot/<url>
or even/dot/dot/dot/<url>
.