diff --git a/docs/_templates/_redirect.html b/docs/_templates/_redirect.html
index 1957ebb8..f417d3ac 100644
--- a/docs/_templates/_redirect.html
+++ b/docs/_templates/_redirect.html
@@ -18,6 +18,9 @@
p += '?_pk_id=' + encodeURIComponent(cookies._pk_id || '');
p += '&_pk_ses=' + encodeURIComponent(cookies._pk_ses || '');
p += '&u=' + encodeURIComponent('{{url}}');
- window.location = 'http://networkgenomics.com/docs/mitogen/' + p;
+ var url = 'http://networkgenomics.com/docs/mitogen/' + p;
+
+ document.write('');