diff --git a/material/base.html b/material/base.html
index e438845a8..0fe208b8e 100644
--- a/material/base.html
+++ b/material/base.html
@@ -129,7 +129,7 @@
{% block content %}
- {% if config.edit_uri %}
+ {% if page.edit_url %}
{% endif %}
{% if not "\x3ch1" in page.content %}
diff --git a/src/base.html b/src/base.html
index 7f3ed7b6c..f743a5300 100644
--- a/src/base.html
+++ b/src/base.html
@@ -242,7 +242,7 @@
{% block content %}
- {% if config.edit_uri %}
+ {% if page.edit_url %}