From 23f13f092aa52c7fecc9b53f873dac450fc458fc Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Sun, 24 Jul 2022 16:46:53 +0800 Subject: [PATCH] :bug: Fix: link-to-edit URL splicing error (#139) --- layouts/partials/single/footer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/single/footer.html b/layouts/partials/single/footer.html index 89cb03d7..a5c595df 100644 --- a/layouts/partials/single/footer.html +++ b/layouts/partials/single/footer.html @@ -38,7 +38,7 @@ {{- with $params.edit -}} {{- if .Enable -}} - {{- $options := dict "Class" "link-to-edit" "Destination" (path.Join .Url $.File.Path) "Title" (T "editThisPage") "Content" (T "editThisPage") "externalIcon" false -}} + {{- $options := dict "Class" "link-to-edit" "Destination" (printf "%v/%v" (strings.TrimSuffix "/" .Url) $.File.Path) "Title" (T "editThisPage") "Content" (T "editThisPage") "externalIcon" false -}} {{- partial "plugin/link.html" $options -}} {{- end -}}