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 <adg@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2015-07-22 12:56:57 -07:00
parent 88421f4cb2
commit ec600479b2
1 changed files with 6 additions and 4 deletions

View File

@ -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 {