mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-25 00:52:46 +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> |
||
---|---|---|
.. | ||
page_generate | ||
pagemeta | ||
siteidentities | ||
page.go | ||
page_author.go | ||
page_data.go | ||
page_data_test.go | ||
page_integration_test.go | ||
page_kinds.go | ||
page_lazy_contentprovider.go | ||
page_marshaljson.autogen.go | ||
page_matcher.go | ||
page_matcher_test.go | ||
page_nop.go | ||
page_outputformat.go | ||
page_paths.go | ||
page_wrappers.autogen.go | ||
pagegroup.go | ||
pagegroup_test.go | ||
pages.go | ||
pages_cache.go | ||
pages_cache_test.go | ||
pages_language_merge.go | ||
pages_prev_next.go | ||
pages_prev_next_test.go | ||
pages_related.go | ||
pages_related_test.go | ||
pages_sort.go | ||
pages_sort_search.go | ||
pages_sort_search_test.go | ||
pages_sort_test.go | ||
pages_test.go | ||
pagination.go | ||
pagination_test.go | ||
path_integration_test.go | ||
permalinks.go | ||
permalinks_integration_test.go | ||
permalinks_test.go | ||
site.go | ||
taxonomy.go | ||
taxonomy_integration_test.go | ||
testhelpers_test.go | ||
weighted.go | ||
zero_file.autogen.go |