diff --git a/docs/_layouts/redirect.html b/docs/_layouts/redirect.html
index 72a0462fc6a30..6177f91b7d793 100644
--- a/docs/_layouts/redirect.html
+++ b/docs/_layouts/redirect.html
@@ -19,10 +19,11 @@
Redirecting…
-
-
-
+{% assign redirect_url = page.redirect.to | replace_first: '/', '' | prepend: rel_path_to_root | append: '.html' %}
+
+
+
Redirecting…
-Click here if you are not redirected.
-
\ No newline at end of file
+Click here if you are not redirected.
+