Skip to content

Commit

Permalink
fix: escape path before urlize
Browse files Browse the repository at this point in the history
  • Loading branch information
HEIGE-PCloud committed Jun 30, 2024
1 parent 9416d34 commit 5e6097e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/function/path.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{- /* https://discourse.gohugo.io/t/how-decode-urls-in-hugo/7549/4 */ -}}
{{- $URL := . | urlize | urls.Parse -}}
{{- $URL := . | urlquery | urlize | urls.Parse -}}
{{- return $URL.Path -}}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e6097e

Please sign in to comment.