🐛 Fix: link-to-edit URL splicing error (#139)

This commit is contained in:
Cell
2022-07-24 16:46:53 +08:00
parent 5cfbc87b0f
commit 23f13f092a
+1 -1
View File
@@ -38,7 +38,7 @@
{{- with $params.edit -}}
{{- if .Enable -}}
<span>
{{- $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 -}}
</span>
{{- end -}}