diff --git a/dsfr/nav.html b/dsfr/nav.html
index 9588b85b90dc10b45332f7b707288662c1114887..5f43174c2830a86dfb6d6e0739ccfd6f6136b6b2 100644
--- a/dsfr/nav.html
+++ b/dsfr/nav.html
@@ -21,8 +21,8 @@
 			{% endif %}
 		{% endfor %}
 	</ul>
-	{% if page.file and config.repo_url and config.edit_uri and config.theme.afficher_bouton_editer %}
-	<a href="{{ config.repo_url }}{{ config.edit_uri }}{{ page.file.src_path }}" target="_blank" rel="noopener">
+	{% if page.edit_url and config.theme.afficher_bouton_editer %}
+	<a href="{{ page.edit_url }}" target="_blank" rel="noopener">
 		{{ config.theme.libelle_bouton_editer }}
 	</a>
 	{% endif %}