diff options
author | Josh Bleecher Snyder <josharian@gmail.com> | 2015-07-22 12:56:57 -0700 |
---|---|---|
committer | Josh Bleecher Snyder <josharian@gmail.com> | 2015-07-22 23:30:17 +0000 |
commit | ec600479b27be7ad21ea55b80251085208d6cfef (patch) | |
tree | 16323f175a67e0022f2ad01d358396fc017ebca2 | |
parent | 88421f4cb273a62118790d1a4166031adc82ba5d (diff) | |
download | tools-ec600479b27be7ad21ea55b80251085208d6cfef.tar.gz |
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>
-rw-r--r-- | godoc/redirect/redirect.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/godoc/redirect/redirect.go b/godoc/redirect/redirect.go index b7498b3..40d1cc1 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 { |