fix random subdomain redirects caused by wildcard domain
1 file changed, 1 insertion(+), 1 deletion(-)
jump to
M internal/server/server.go → internal/server/server.go
@@ -200,7 +200,7 @@ config.BaseURL.JoinPath(path).String(), http.StatusMovedPermanently, ) case re.MatchString(r.Host): - url := config.BaseURL + url := config.BaseURL.JoinPath() url.Host = re.ReplaceAllString(r.Host, replace) http.Redirect(w, r, url.String(), http.StatusTemporaryRedirect) case true: