mirror of
https://github.com/gohugoio/hugo.git
synced 2025-02-20 13:31:22 +00:00
The general way Hugo does this now is: * Sanitize the file paths so the work as URLs * When we create the final RelPermalink/Permalink, we use Go's `url.Parse` to escape it so it work for the browser. So, leaving anything in the first step that does not work with the second step, just doesn't work. It's a little bit odd that `url.Parse` silently truncates this URL without any error, but that's for another day. I have another better test coverage for this. Fixes #12342 Fixes #4926 See #8232 |
||
---|---|---|
.. | ||
collections | ||
constants | ||
hcontext | ||
herrors | ||
hexec | ||
hreflect | ||
hstrings | ||
htime | ||
hugio | ||
hugo | ||
loggers | ||
maps | ||
math | ||
para | ||
paths | ||
predicate | ||
rungroup | ||
terminal | ||
text | ||
types | ||
urls | ||
docs.go |