diff --git a/material/base.html b/material/base.html
index e438845a8ee105b980883ec9a41f29ae12f5fd58..0fe208b8e0040a9107ec7e954db0cad4f3f5cafc 100644
--- a/material/base.html
+++ b/material/base.html
@@ -129,7 +129,7 @@
           <div class="md-content">
             <article class="md-content__inner md-typeset">
               {% block content %}
-                {% if config.edit_uri %}
+                {% if page.edit_url %}
                   <a href="{{ page.edit_url }}" title="{{ lang.t('edit.link.title') }}" class="md-icon md-content__icon">&#xE3C9;</a>
                 {% endif %}
                 {% if not "\x3ch1" in page.content %}
diff --git a/src/base.html b/src/base.html
index 7f3ed7b6c6cef7246916c9847d86b54f2384f90c..f743a53003e2c4ab4eda9d58edef8e803abd0fa0 100644
--- a/src/base.html
+++ b/src/base.html
@@ -242,7 +242,7 @@
               {% block content %}
 
                 <!-- Edit button, if URL was defined -->
-                {% if config.edit_uri %}
+                {% if page.edit_url %}
                   <a href="{{ page.edit_url }}"
                       title="{{ lang.t('edit.link.title') }}"
                       class="md-icon md-content__icon">&#xE3C9;<!-- edit --></a>