Open caspermeijn opened 1 month ago
In the example above...
Expected URL to stylesheet:
https://caspermeijn.github.io/receptenboek/css/gochowdown.css
Actual URL to stylesheet:
https://caspermeijn.github.io/receptenboek/receptenboek/css/gochowdown.css
Instead of fixing this, can we instead deprecate canonifyURLs
per https://github.com/gohugoio/hugo/issues/4733? In the documentation we've been discouraging its use for a quite a while:
https://gohugo.io/content-management/urls/#canonical-urls
Seems a valid solution to me. I was using canonifyURLs
because it came with the example inside a theme. I didn't know it was discouraged.
The
RelPermalink
of scss file converted usingtoCSS
is incorrect when thebaseURL
has a path andcanonifyURLs
is enabled.I already found https://github.com/gohugoio/hugo/issues/4733 which suggests removing support of
canonifyURLs
. I will disablecanonifyURLs
in my configuration to work around this problem.What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes, it does happen with v0.132.2.
Reproducable
I created a test that can reproduce the problem. This test fails when added to the hugo codebase.