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 Handle resource changes when the resources is already evicted from cache 2024-02-04 16:55:06 +01:00
constants Emit a warning that can be turned off when overwriting built-in .Params values 2024-01-30 20:12:03 +01:00
hcontext all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
herrors Improve nilpointer error message 2024-02-01 19:53:51 +01:00
hexec all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
hreflect all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
hstrings all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
htime all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
hugio hugio: Rename strigReadSeeker => stringReadSeeker 2024-02-03 17:25:34 +01:00
hugo releaser: Prepare repository for 0.125.0-DEV 2024-03-20 11:53:43 +00:00
loggers Add warnidf template function 2024-01-30 20:12:03 +01:00
maps all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
math all: gofmt -w -r 'interface{} -> any' . 2022-03-17 22:03:27 +01:00
para common/para: Skip flaky test on CI 2023-11-28 12:23:38 +01:00
paths Strip hash sign (#) from file paths/URLs 2024-04-05 11:37:18 +02:00
predicate all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
rungroup all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
terminal all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
text all: Run gofumpt -l -w . 2024-01-28 23:14:09 +01:00
types Fix intersect and similar for term entry page collections 2024-03-15 16:45:53 +01:00
urls all: Rework page store, add a dynacache, improve partial rebuilds, and some general spring cleaning 2024-01-27 16:28:14 +01:00
docs.go Misc doc, code refactoring to improve documentation 2023-01-04 18:01:26 +01:00