diff --git a/hugo/layouts/partials/page-edit.html b/hugo/layouts/partials/page-edit.html
index 30b84d86f65..a9083c6a2c8 100644
--- a/hugo/layouts/partials/page-edit.html
+++ b/hugo/layouts/partials/page-edit.html
@@ -38,7 +38,7 @@
{{/* Not in integrations edit existing docs file */}}
{{ with $ctx.File }}
- {{ $editLink = ( printf "https://github.com/DataDog/documentation/edit/master/content/%s/%s/" $ctx.Page.Lang $ctx.File.Path ) }}
+ {{ $editLink = ( printf "https://github.com/DataDog/documentation/edit/master/hugo/content/%s/%s/" $ctx.Page.Lang $ctx.File.Path ) }}
{{ partial "page-edit-body.html" (dict "ctx" $ctx "link" $editLink "type" $type) }}
{{ end }}