aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/_includes/head.html
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-10-28 12:02:50 +0000
committerGravatar John Cater <jcater@google.com>2016-10-28 16:02:57 +0000
commit4885eefffe11d5623eb478328f9fdc88fbcc6345 (patch)
tree7fee425b258e62ba286442ae721b150e0cab25cf /site/_includes/head.html
parent9facc2969ffaa3147f7d8b08628b90b60247ce77 (diff)
Change our URL to bazel.build
-- MOS_MIGRATED_REVID=137500893
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>