mirror of https://github.com/gohugoio/hugo
![]() 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 |
||
---|---|---|
.. | ||
content.go | ||
content_test.go | ||
docshelper.go | ||
emoji.go | ||
emoji_test.go | ||
general.go | ||
general_test.go | ||
path.go | ||
path_test.go | ||
pathspec.go | ||
processing_stats.go | ||
testhelpers_test.go | ||
url.go | ||
url_test.go |