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