Skip to content

Sites with a custom locationPath are returning an error if trailing slash is missing for sub-pages

I am encountering this while working on eclipsefdn/it/webdev/hugo-solstice-theme!280 (diffs)

Previews are working: https://preview-280--webdev-eclipse-org-docs-hugo.eclipsecontent.org/docs/hugo

However, links without a trailing slash at the end are not working. For example, https://preview-280--webdev-eclipse-org-docs-hugo.eclipsecontent.org/docs/hugo/components is redirecting to https://preview-280--webdev-eclipse-org-docs-hugo.eclipsecontent.org/components which is outside of the configured locationPath eclipsefdn/it/webdev/hugo-solstice-theme!280 (diffs)

The links in the URL seem to be correct.

As far as I can tell, sites hosted at the root of the domain do not have this issue.

/cc @mbarbero @heurtemattes

Edited by Christopher Guindon
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information