mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-26 01:43:08 +00:00
4500b0e423
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> |
||
---|---|---|
.. | ||
assets | ||
images | ||
internal | ||
jsconfig | ||
kinds | ||
page | ||
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 |