hugo/common
Bjørn Erik Pedersen 34033e349a
Strip hash sign (#) from file paths/URLs
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
2024-04-05 11:37:18 +02:00
..
collections
constants
hcontext
herrors
hexec
hreflect
hstrings
htime
hugio
hugo releaser: Prepare repository for 0.125.0-DEV 2024-03-20 11:53:43 +00:00
loggers
maps
math
para
paths Strip hash sign (#) from file paths/URLs 2024-04-05 11:37:18 +02:00
predicate
rungroup
terminal
text
types
urls
docs.go