diff --git a/webserver/webserver.go b/webserver/webserver.go index 51b995b..42ea05a 100644 --- a/webserver/webserver.go +++ b/webserver/webserver.go @@ -342,7 +342,12 @@ func groupBase(r *http.Request) (string, error) { if err != nil { return "", err } - return u.JoinPath("/group/").String(), nil + base := url.URL{ + Scheme: u.Scheme, + Host: u.Host, + Path: path.Join(u.Path, "/group/"), + } + return base.String(), nil } scheme := "https" if r.TLS == nil {