Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix extra www fix
  • Loading branch information
ccbrown committed May 23, 2019
commit 5c2348ac7bb7c548ba8082ab56c80efe860e94cf
2 changes: 1 addition & 1 deletion server/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down