aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/golangorg/server_test.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmd/golangorg/server_test.go b/cmd/golangorg/server_test.go
index be48eb81..649c50f9 100644
--- a/cmd/golangorg/server_test.go
+++ b/cmd/golangorg/server_test.go
@@ -290,7 +290,8 @@ func fixURL(u *url.URL) string {
return u.String()
case "github.com":
if strings.HasPrefix(u.Path, "/golang/go/issues/") {
- u.Host = "go.dev"
+ u.Host = ""
+ u.Scheme = ""
u.Path = "/issue/" + strings.TrimPrefix(u.Path, "/golang/go/issues/")
if u.Path == "/issue/new/choose" {
// A special case to deal with the '/choose' suffix.
@@ -300,7 +301,8 @@ func fixURL(u *url.URL) string {
return u.String()
}
if strings.HasPrefix(u.Path, "/golang/go/wiki/") {
- u.Host = "go.dev"
+ u.Host = ""
+ u.Scheme = ""
u.Path = "/wiki/" + strings.TrimPrefix(u.Path, "/golang/go/wiki/")
return u.String()
}