aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/_includes
diff options
context:
space:
mode:
authorGravatar davidstanke <davidstanke@google.com>2017-11-21 08:11:16 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-21 08:12:49 -0800
commit2bfb6d45eb0f557f35b028d82036da85fbf04655 (patch)
tree7c57de19b95c0b0fa50d8ab4da7755891b9e8afb /site/_includes
parent856b4dd190779ded5c2976f9b35fcc79606cc0d7 (diff)
Remove js domain redirects
See https://github.com/bazelbuild/bazel-website/issues/74 -- these domain redirects are obsolete. Closes #4130. PiperOrigin-RevId: 176509860
Diffstat (limited to 'site/_includes')
-rw-r--r--site/_includes/head.html9
1 files changed, 1 insertions, 8 deletions
diff --git a/site/_includes/head.html b/site/_includes/head.html
index b85760db23..8c844d86bd 100644
--- a/site/_includes/head.html
+++ b/site/_includes/head.html
@@ -6,14 +6,7 @@
<script>
var current_url = window.location.href;
- 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/"));
- }
- var http_url = new RegExp("^http://(www\.)?bazel.build/");
- if (http_url.test(current_url)) {
- window.location.replace(current_url.replace(http_url, "https://bazel.build/"));
- }
+
// Do a shortcut so that be.bazel.build redirect to the build encyclopedia
var be_url = new RegExp("^https?://be(\.bazel.build)?/?");
if (be_url.test(current_url)) {