From 5e6097e87201cc54cf9230de85680b17752d2622 Mon Sep 17 00:00:00 2001 From: PCloud Date: Sun, 30 Jun 2024 16:41:17 +0200 Subject: [PATCH] fix: escape path before urlize --- layouts/partials/function/path.html | 2 +- package-lock.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/layouts/partials/function/path.html b/layouts/partials/function/path.html index ece426fe7..b82e07956 100644 --- a/layouts/partials/function/path.html +++ b/layouts/partials/function/path.html @@ -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 -}} diff --git a/package-lock.json b/package-lock.json index 7e14d28fb..de4a194b9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1998,9 +1998,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001620", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001620.tgz", - "integrity": "sha512-WJvYsOjd1/BYUY6SNGUosK9DUidBPDTnOARHp3fSmFO1ekdxaY6nKRttEVrfMmYi80ctS0kz1wiWmm14fVc3ew==", + "version": "1.0.30001638", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001638.tgz", + "integrity": "sha512-5SuJUJ7cZnhPpeLHaH0c/HPAnAHZvS6ElWyHK9GSIbVOQABLzowiI2pjmpvZ1WEbkyz46iFd4UXlOHR5SqgfMQ==", "funding": [ { "type": "opencollective",