diff --git a/_layouts/docs.html b/_layouts/docs.html
index 981aa30a0e..82150b767f 100644
--- a/_layouts/docs.html
+++ b/_layouts/docs.html
@@ -23,7 +23,7 @@
{% assign edit_url = "https://github.com/docker/docker.github.io/edit/master/" | append: page.path %}
{% for entry in site.data.not_edited_here.overrides %}
- {% if page.url contains entry.path %}
+ {% if page.path contains entry.path %}
{% if entry.source %}
{% assign edit_url = entry.source %}
{% else %}