From ec600479b27be7ad21ea55b80251085208d6cfef Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Wed, 22 Jul 2015 12:56:57 -0700 Subject: [PATCH] godoc/redirect: make /issue and /issues identical I frequently type one when the other is required. Make them interchangeable. Change-Id: Ib98d2b67aa42d79e6a8e9fd29fdea17048378eb6 Reviewed-on: https://go-review.googlesource.com/12509 Reviewed-by: Andrew Gerrand --- godoc/redirect/redirect.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/godoc/redirect/redirect.go b/godoc/redirect/redirect.go index b7498b36..40d1cc18 100644 --- a/godoc/redirect/redirect.go +++ b/godoc/redirect/redirect.go @@ -97,6 +97,7 @@ var redirects = map[string]string{ "/issue": "https://github.com/golang/go/issues", "/issue/new": "https://github.com/golang/go/issues/new", "/issues": "https://github.com/golang/go/issues", + "/issues/new": "https://github.com/golang/go/issues/new", "/play": "http://play.golang.org", // In Go 1.2 the references page is part of /doc/. @@ -131,10 +132,11 @@ var redirects = map[string]string{ } var prefixHelpers = map[string]string{ - "issue": "https://github.com/golang/go/issues/", - "play": "http://play.golang.org/", - "talks": "http://talks.golang.org/", - "wiki": "https://github.com/golang/go/wiki/", + "issue": "https://github.com/golang/go/issues/", + "issues": "https://github.com/golang/go/issues/", + "play": "http://play.golang.org/", + "talks": "http://talks.golang.org/", + "wiki": "https://github.com/golang/go/wiki/", } func Handler(target string) http.Handler {