From 5c2348ac7bb7c548ba8082ab56c80efe860e94cf Mon Sep 17 00:00:00 2001 From: Christopher Brown Date: Thu, 23 May 2019 15:07:18 -0400 Subject: [PATCH] fix extra www fix --- server/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/common.go b/server/common.go index 6c35a07..048b4cc 100644 --- a/server/common.go +++ b/server/common.go @@ -24,7 +24,7 @@ func SubdomainURL(c echo.Context, subdomain string) string { } locale := LocaleForRequest(c.Request()) host := strings.TrimPrefix(c.Request().Host, "www.") - host = strings.TrimPrefix(c.Request().Host, locale.Subdomain+".") + host = strings.TrimPrefix(host, locale.Subdomain+".") if subdomain != "" { host = subdomain + "." + host }