diff options
| author | Dmitri Shuralyov <dmitshur@golang.org> | 2024-12-14 12:19:46 -0500 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-12-16 14:58:41 -0800 |
| commit | 0ff1fc787e0f3a991a71d261e6eae2c40f31bfdd (patch) | |
| tree | 235be1e31be0dba91d3fa0ffcbe9778a30873302 /cmd | |
| parent | 48e5c7dc9b087c347a2f7e05707f571f85a257b6 (diff) | |
| download | go-x-website-0ff1fc787e0f3a991a71d261e6eae2c40f31bfdd.tar.xz | |
cmd/golangorg: redirect /issue(s) on tip.golang.org
The /issue and its alias /issues subtrees were missed in CL 634915.
Also group related subtrees together.
For golang/go#58484.
Change-Id: I598e2c7aa70f56bdfd3ec069347dca3d96f8e6d5
Reviewed-on: https://go-review.googlesource.com/c/website/+/636215
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/golangorg/server.go | 4 | ||||
| -rw-r--r-- | cmd/golangorg/testdata/web.txt | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cmd/golangorg/server.go b/cmd/golangorg/server.go index 9f672aee..12008a4f 100644 --- a/cmd/golangorg/server.go +++ b/cmd/golangorg/server.go @@ -226,10 +226,10 @@ func NewHandler(contentDir, goroot string) http.Handler { // Redirect synthetic subtrees on tip.golang.org over to go.dev. tipRedirects := []string{ "blog", - "change", - "cl", + "cl", "change", "design", "dl", + "issue", "issues", "s", "talks", "tour", diff --git a/cmd/golangorg/testdata/web.txt b/cmd/golangorg/testdata/web.txt index 31a0d6b6..de977648 100644 --- a/cmd/golangorg/testdata/web.txt +++ b/cmd/golangorg/testdata/web.txt @@ -199,6 +199,9 @@ redirect == https://go.dev/change/123 GET https://tip.golang.org/cl/123 redirect == https://go.dev/cl/123 +GET https://tip.golang.org/issue/123 +redirect == https://go.dev/issue/123 + GET https://tip.golang.org/s/123 redirect == https://go.dev/s/123 |
