diff --git a/handlers/new_session.go b/handlers/new_session.go index c139341..5e3b3c0 100644 --- a/handlers/new_session.go +++ b/handlers/new_session.go @@ -62,7 +62,7 @@ func NewSession(rw http.ResponseWriter, req *http.Request) { } if stack != "" { - http.Redirect(rw, req, fmt.Sprintf("%s://%s/p/%s", req.URL.Scheme, hostname, s.Id), http.StatusFound) + http.Redirect(rw, req, fmt.Sprintf("/%s/p/%s", hostname, s.Id), http.StatusFound) return } http.Redirect(rw, req, fmt.Sprintf("http://%s/p/%s", hostname, s.Id), http.StatusFound)