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 resources/images: Retain newlines with text overlays 2024-03-07 09:52:30 +01:00
internal
jsconfig
kinds
page resources/page: Escape hash sign in permalinks 2024-04-05 15:57:02 +02:00
postpub
resource Fix Name for nested resourced fetched in resources.ByName and similar 2024-03-13 18:59:50 +02:00
resource_factories resources: Use different cache key when copying resources 2024-03-27 09:59:59 +01:00
resource_transformers all: Typo fixes 2024-03-15 17:25:52 +01:00
testdata
docs.go
errorResource.go
image.go resource: Revert the normalization of Resource.Name 2024-02-25 14:57:29 +01:00
image_cache.go Fix multihost processed image not copied to non-default content languages 2024-02-27 10:43:23 +01:00
image_extended_test.go
image_test.go testing: Set usesFMA as true for riscv64 too 2024-03-20 08:59:13 +01:00
post_publish.go
resource.go resource: Revert the normalization of Resource.Name 2024-02-25 14:57:29 +01:00
resource_cache.go
resource_metadata.go resource: Revert the normalization of Resource.Name 2024-02-25 14:57:29 +01:00
resource_spec.go resource: Revert the normalization of Resource.Name 2024-02-25 14:57:29 +01:00
resource_spec_test.go
resources_integration_test.go resources: Use different cache key when copying resources 2024-03-27 09:59:59 +01:00
testhelpers_test.go resource: Revert the normalization of Resource.Name 2024-02-25 14:57:29 +01:00
transform.go resource: Revert the normalization of Resource.Name 2024-02-25 14:57:29 +01:00
transform_integration_test.go
transform_test.go