aboutsummaryrefslogtreecommitdiff
path: root/misc/chrome
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@golang.org>2014-12-13 19:47:22 +1100
committerBrad Fitzpatrick <bradfitz@golang.org>2014-12-13 10:18:27 +0000
commit2d02ff278cb8b339df239f5706d2b5b13917e302 (patch)
treee496846ef73a7d69c527b62b9a77669a7ae811d4 /misc/chrome
parent8476d4cf2937fc261bbcf2890ba39d815bce3ae5 (diff)
downloadgo-2d02ff278cb8b339df239f5706d2b5b13917e302.tar.gz
go-2d02ff278cb8b339df239f5706d2b5b13917e302.zip
misc/chrome/gophertool: update URLs from code.google.com to new homes
Change-Id: I46bf9f1b84a331cabce2d3417b2b59ccb83d00fa Reviewed-on: https://go-review.googlesource.com/1532 Reviewed-by: David Symonds <dsymonds@golang.org>
Diffstat (limited to 'misc/chrome')
-rw-r--r--misc/chrome/gophertool/gopher.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/misc/chrome/gophertool/gopher.js b/misc/chrome/gophertool/gopher.js
index 3238f0fccd..686e2175f9 100644
--- a/misc/chrome/gophertool/gopher.js
+++ b/misc/chrome/gophertool/gopher.js
@@ -13,20 +13,22 @@ function urlForInput(t) {
if (numericRE.test(t)) {
if (t < 150000) {
- return "http://code.google.com/p/go/issues/detail?id=" + t;
+ // We could use the golang.org/cl/ handler here, but
+ // avoid some redirect latency and go right there, since
+ // one is easy. (no server-side mapping)
+ return "https://github.com/golang/go/issues/" + t;
}
- return "http://codereview.appspot.com/" + t + "/";
+ return "https://golang.org/cl/" + t;
}
var match = commitRE.exec(t);
if (match) {
- return "http://code.google.com/p/go/source/detail?r=" + match[1];
+ return "https://golang.org/change/" + match[1];
}
if (pkgRE.test(t)) {
// TODO: make this smarter, using a list of packages + substring matches.
// Get the list from godoc itself in JSON format?
- // TODO: prefer localhost:6060 to golang.org if localhost:6060 is responding.
return "http://golang.org/pkg/" + t;
}