Skip to content

Commit 9b933aa

Browse files
authored
fix extra www fix (ccbrown#41)
1 parent 952678d commit 9b933aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/common.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func SubdomainURL(c echo.Context, subdomain string) string {
2424
}
2525
locale := LocaleForRequest(c.Request())
2626
host := strings.TrimPrefix(c.Request().Host, "www.")
27-
host = strings.TrimPrefix(c.Request().Host, locale.Subdomain+".")
27+
host = strings.TrimPrefix(host, locale.Subdomain+".")
2828
if subdomain != "" {
2929
host = subdomain + "." + host
3030
}

0 commit comments

Comments
 (0)