diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index f7955671..1ba9eeed 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -26,7 +26,7 @@
{{- if site.Params.editURL.enable -}} {{- $editURL := site.Params.editURL.base | default "" -}} - {{- with .File -}}{{ $editURL = urls.JoinPath $editURL .Path }}{{- end -}} + {{- with .File -}}{{ $editURL = urls.JoinPath $editURL (replace .Path "\\" "/") }}{{- end -}} {{- with .Params.editURL -}}{{ $editURL = .Params.editURL }}{{- end -}} {{ $editThisPage }} {{- end -}}