hugo/resources
Soren L. Hansen 4500b0e423 resources/page: Escape hash sign in permalinks
When creating a link to a file with a `#` in the filename, the link gets
truncated. This happens because the filename is eventaully passed to
`url.Parse` which (correctly!) interprets the `#` as fragment separator.

This commit escapes the `#` in the filename before creating the link.

Fixes #4926
Fixes #8232
Fixes #12342

Co-authored-by: Joe Mooring <joe.mooring@veriphor.com>
2024-04-05 15:57:02 +02:00
..
assets
images
internal
jsconfig
kinds
page resources/page: Escape hash sign in permalinks 2024-04-05 15:57:02 +02:00
postpub
resource
resource_factories
resource_transformers
testdata
docs.go
errorResource.go
image.go
image_cache.go
image_extended_test.go
image_test.go
post_publish.go
resource.go
resource_cache.go
resource_metadata.go
resource_spec.go
resource_spec_test.go
resources_integration_test.go
testhelpers_test.go
transform.go
transform_integration_test.go
transform_test.go