diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
index 6d1f34d..21d77a7 100644
--- a/layouts/partials/toc.html
+++ b/layouts/partials/toc.html
@@ -27,7 +27,7 @@
{{- if site.Params.editURL.enable -}}
{{- $editURL := site.Params.editURL.base | default "" -}}
{{- with .File -}}{{ $editURL = urls.JoinPath $editURL (replace .Path "\\" "/") }}{{- end -}}
- {{- with .Params.editURL -}}{{ $editURL = .Params.editURL }}{{- end -}}
+ {{- with .Params.editURL -}}{{ $editURL = . }}{{- end -}}
{{ $editThisPage }}
{{- end -}}
{{/* Scroll To Top */}}