So you have enabled uglyURLs
for all output formats, correct?
Notes:
-
Regarding unexpected section URLs:
https://github.com/gohugoio/hugo/issues/4428 -
This is incorrect: https://gohugo.io/configuration/output-formats/#path. It explains what should happen (I think), not what’s actually happening. The
path
is relative to the current section for sections, else it’s relative to the root of the publish directory. And the base name is wrong. And this happens whether or notuglyURLs
is enabled. I tested as far back as v0.100.0 and saw the same thing… this isn’t anything new. -
This has come up several times in the past. For example:
-
It seems like this feature (setting
path
on an output format) was implemented with AMP in mind, which is a very specific use case. -
Yuck.
Reproducible example:
git clone --single-branch -b hugo-forum-topic-55215 https://github.com/jmooring/hugo-testing hugo-forum-topic-55215
cd hugo-forum-topic-55215
rm -rf dist && hugo && tree dist