diff options
author | Damien Martin-Guillerez <dmarting@google.com> | 2016-11-14 16:05:46 +0000 |
---|---|---|
committer | Damien Martin-Guillerez <dmarting@google.com> | 2016-11-15 15:55:31 +0000 |
commit | 911167d0264806b5842b6b6187ea023c80c6d306 (patch) | |
tree | b47bb03391ff849040c4ef67d5369d784a56194b /site/_includes/head.html | |
parent | 18033b0996e96faf67536b43165b3f40f234a3f7 (diff) |
Fix the redirection for be.bazel.build
References to the Build Encyclopedia overview was incorrect and regex value were referencing wrong groups.
--
MOS_MIGRATED_REVID=139073937
Diffstat (limited to 'site/_includes/head.html')
-rw-r--r-- | site/_includes/head.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/site/_includes/head.html b/site/_includes/head.html index bfb266f3f2..82b22541e8 100644 --- a/site/_includes/head.html +++ b/site/_includes/head.html @@ -17,11 +17,11 @@ // 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)) { - window.location.replace(current_url.replace(be_url, "https://bazel.build/docs")); + window.location.replace(current_url.replace(be_url, "https://bazel.build/docs/be/overview.html")); } var be_url = new RegExp("^https?://be(\.bazel.build)?/([a-zA-Z0-9_-]+)([/#](.*))?"); if (be_url.test(current_url)) { - window.location.replace(current_url.replace(be_url, "https://bazel.build/docs/be/$3.html#$5")); + window.location.replace(current_url.replace(be_url, "https://bazel.build/docs/be/$2.html#$4")); } // And a short to code reviews var cr_url = new RegExp("^https?://cr(\.bazel.build)?/([0-9]+)") |