diff --git a/webserver/webserver.go b/webserver/webserver.go index 4d869c7..377ce4c 100644 --- a/webserver/webserver.go +++ b/webserver/webserver.go @@ -360,16 +360,7 @@ func groupBase(r *http.Request) (string, error) { return "", nil } if conf.ProxyURL != "" { - u, err := url.Parse(conf.ProxyURL) - if err != nil { - return "", err - } - base := url.URL{ - Scheme: u.Scheme, - Host: u.Host, - Path: path.Join(u.Path, "/group/"), - } - return base.String(), nil + return url.JoinPath(conf.ProxyURL, "/group/") } scheme := "https" if r.TLS == nil {