aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/_includes/head.html
diff options
context:
space:
mode:
Diffstat (limited to 'site/_includes/head.html')
-rw-r--r--site/_includes/head.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/site/_includes/head.html b/site/_includes/head.html
index 17af3ab54e..664bcdef72 100644
--- a/site/_includes/head.html
+++ b/site/_includes/head.html
@@ -6,13 +6,13 @@
<script>
var current_url = window.location.href;
- var bad_url = new RegExp("^https?://bazelbuild.github.io/bazel/");
+ var bad_url = new RegExp("^https?://(bazelbuild.github.io/bazel|bazel.io)/");
if (bad_url.test(current_url)) {
- window.location.replace(current_url.replace(bad_url, "https://www.bazel.io/"));
+ window.location.replace(current_url.replace(bad_url, "https://bazel.build/"));
}
- var http_url = new RegExp("^http://(www\.)?bazel.io/");
+ var http_url = new RegExp("^http://(www\.)?bazel.build/");
if (http_url.test(current_url)) {
- window.location.replace(current_url.replace(http_url, "https://www.bazel.io/"));
+ window.location.replace(current_url.replace(http_url, "https://bazel.build/"));
}
</script>