diff --git a/_layouts/redirect.html b/_layouts/redirect.html
index e5c382d1e7..3b9cece79e 100644
--- a/_layouts/redirect.html
+++ b/_layouts/redirect.html
@@ -2,10 +2,15 @@
Redirecting…
-
-
+ {%- assign redirect_to = page.redirect.to | remove_first: 'https://docs.docker.com' | remove_first: 'http://docs.docker.com' %}
+ {%- if redirect_to contains "://" %}
+
+ {%- else %}
+
+ {%- endif %}
+
Redirecting…
- Click here if you are not redirected.
-
+ Click here if you are not redirected.
+