Skip to content

Commit

Permalink
Redirect user before showing failsafe text (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTripleV committed Jan 22, 2021
1 parent 19bf9d3 commit b53c5c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sphinxext/rediraffe.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
</noscript>
</head>
<body>
<p>You should have been redirected.</p>
<a href="{{rel_url}}">If not, click here to continue.</a>
<script>
window.location.href = '{{rel_url}}' + (window.location.search || '') + (window.location.hash || '');
</script>
<p>You should have been redirected.</p>
<a href="{{rel_url}}">If not, click here to continue.</a>
</body>
</html>
Expand Down

0 comments on commit b53c5c0

Please sign in to comment.