aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/_layouts
diff options
context:
space:
mode:
authorGravatar Tobias Werth <twerth@google.com>2016-09-09 09:37:13 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-09-09 14:16:51 +0000
commitb9bcf71a75a98d5a118e8293f5e1a4e8bbd480e1 (patch)
tree2d1aa72e7fdb129beb0cdab912af320ab6cd2974 /site/_layouts
parent4de9894021d98d74512324f50e0b99a2f9086ebe (diff)
Make links to docs with anchors working again.
This way, we can still use links like: http://bazel.io/docs/bazel-user-manual.html#sandboxing -- Change-Id: Id76a9795eaaaa0cd420df83440faada584c8621b Reviewed-on: https://bazel-review.googlesource.com/c/5950/ MOS_MIGRATED_REVID=132654093
Diffstat (limited to 'site/_layouts')
-rw-r--r--site/_layouts/redirect.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/_layouts/redirect.html b/site/_layouts/redirect.html
index 85ae15edbf..d2fb13ac48 100644
--- a/site/_layouts/redirect.html
+++ b/site/_layouts/redirect.html
@@ -1,7 +1,7 @@
<html>
<head>
<script>
- window.location.replace("/versions/{{ site.default_version }}/{{ page.redirect }}");
+ window.location.replace("/versions/{{ site.default_version }}/{{ page.redirect }}" + window.location.hash);
</script>
</head>
</html>