diff --git a/godoc/redirect/redirect.go b/godoc/redirect/redirect.go index b07d97f1..01ab4251 100644 --- a/godoc/redirect/redirect.go +++ b/godoc/redirect/redirect.go @@ -196,7 +196,7 @@ func clHandler(w http.ResponseWriter, r *http.Request) { if n, err := strconv.Atoi(id); err == nil && n > 150000 { target = "https://codereview.appspot.com/" + id } else { - target = "https://go-review.googlesource.com/r/" + id + target = "https://go-review.googlesource.com/" + id } http.Redirect(w, r, target, http.StatusFound) } diff --git a/godoc/redirect/redirect_test.go b/godoc/redirect/redirect_test.go index 5e8045a3..21c6dae8 100644 --- a/godoc/redirect/redirect_test.go +++ b/godoc/redirect/redirect_test.go @@ -55,8 +55,8 @@ func TestRedirects(t *testing.T) { "/design/123-foo": {302, "https://github.com/golang/proposal/blob/master/design/123-foo.md"}, "/design/text/123-foo": {302, "https://github.com/golang/proposal/blob/master/design/text/123-foo.md"}, - "/cl/1": {302, "https://go-review.googlesource.com/r/1"}, - "/cl/1/": {302, "https://go-review.googlesource.com/r/1"}, + "/cl/1": {302, "https://go-review.googlesource.com/1"}, + "/cl/1/": {302, "https://go-review.googlesource.com/1"}, "/cl/267120043": {302, "https://codereview.appspot.com/267120043"}, "/cl/267120043/": {302, "https://codereview.appspot.com/267120043"}, }