diff --git a/server/common.go b/server/common.go index f7d0297..6c35a07 100644 --- a/server/common.go +++ b/server/common.go @@ -23,7 +23,8 @@ func SubdomainURL(c echo.Context, subdomain string) string { scheme = "https" } locale := LocaleForRequest(c.Request()) - host := strings.TrimPrefix(c.Request().Host, locale.Subdomain+".") + host := strings.TrimPrefix(c.Request().Host, "www.") + host = strings.TrimPrefix(c.Request().Host, locale.Subdomain+".") if subdomain != "" { host = subdomain + "." + host }