diff --git a/godoc/redirect/redirect.go b/godoc/redirect/redirect.go index c81d05fc..f86e0ada 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 8a02de32..cfc2f979 100644 --- a/godoc/redirect/redirect_test.go +++ b/godoc/redirect/redirect_test.go @@ -58,8 +58,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"}, }