Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs redirects #5824

Merged
merged 11 commits into from
Oct 5, 2017
Prev Previous commit
Next Next commit
modify redirected.html to preserve url hases
  • Loading branch information
cherniavskii committed Oct 4, 2017
commit 809c1791b6114af31808fa77a0bf216c2dc61fb0
8 changes: 7 additions & 1 deletion docs/_layouts/redirected.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
<body>
<h1>Redirecting...</h1>
<a href="{{ page.redirect_to }}">Click here if you are not redirected.<a>
<script>location='{{ page.redirect_to }}'</script>
<script>
var url = '{{ page.redirect_to }}';
if (location.hash) {
url += location.hash;
}
location = url;
</script>
</body>
</html>