hugo/resources/page
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
..
page_generate
pagemeta Fix front matter date location when value gets inherited from other dates 2024-03-13 19:00:50 +02:00
siteidentities
page.go hugolib: Deprecate site methods Author, Authors, and Social 2024-03-15 17:26:45 +01:00
page_author.go hugolib: Deprecate site methods Author, Authors, and Social 2024-03-15 17:26:45 +01:00
page_data.go
page_data_test.go
page_integration_test.go testing: Simplify some integration tests 2024-01-28 22:17:22 +01:00
page_kinds.go
page_lazy_contentprovider.go
page_marshaljson.autogen.go
page_matcher.go Fix cascade-pattern-with-extension for cascade in site config 2024-02-26 17:29:37 +01:00
page_matcher_test.go common/hugo: Rename IsMultiHost and IsMultiLingual 2024-03-13 17:34:42 +02:00
page_nop.go hugolib: Deprecate site methods Author, Authors, and Social 2024-03-15 17:26:45 +01:00
page_outputformat.go
page_paths.go resources/page: Escape hash sign in permalinks 2024-04-05 15:57:02 +02:00
page_wrappers.autogen.go
pagegroup.go resources/page: Fix typo 2024-02-10 21:28:03 +02:00
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 resources/page: Fix GoDoc comment 2024-03-22 08:56:10 +01:00
pages_sort_search_test.go
pages_sort_test.go
pages_test.go
pagination.go Improve error message when attempting to paginate from a single page template 2024-01-31 16:54:34 +01:00
pagination_test.go
path_integration_test.go resources/page: Escape hash sign in permalinks 2024-04-05 15:57:02 +02:00
permalinks.go all: Fix typos 2024-02-11 13:51:33 +02:00
permalinks_integration_test.go
permalinks_test.go
site.go hugolib: Deprecate site methods Author, Authors, and Social 2024-03-15 17:26:45 +01:00
taxonomy.go resources/page: Make Taxonomy.Get and Taxonomy.Count case-insensitive 2024-03-01 12:09:00 +01:00
taxonomy_integration_test.go resources/page: Make Taxonomy.Get and Taxonomy.Count case-insensitive 2024-03-01 12:09:00 +01:00
testhelpers_test.go hugolib: Deprecate site methods Author, Authors, and Social 2024-03-15 17:26:45 +01:00
weighted.go
zero_file.autogen.go