mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
34033e349a
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 |
||
---|---|---|
.. | ||
path.go | ||
path_test.go | ||
pathparser.go | ||
pathparser_test.go | ||
paths_integration_test.go | ||
pathtype_string.go | ||
url.go | ||
url_test.go |