We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 800271e commit 200b974Copy full SHA for 200b974
cmd/web.go
@@ -102,7 +102,10 @@ func runLetsEncryptFallbackHandler(w http.ResponseWriter, r *http.Request) {
102
http.Error(w, "Use HTTPS", http.StatusBadRequest)
103
return
104
}
105
- target := setting.AppURL + r.URL.RequestURI()
+ // Remove the trailing slash at the end of setting.AppURL, the request
106
+ // URI always contains a leading slash, which would result in a double
107
+ // slash
108
+ target := strings.TrimRight(setting.AppURL, "/") + r.URL.RequestURI()
109
http.Redirect(w, r, target, http.StatusFound)
110
111
0 commit comments