We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8064ba7 commit 952678dCopy full SHA for 952678d
server/common.go
@@ -23,7 +23,8 @@ func SubdomainURL(c echo.Context, subdomain string) string {
23
scheme = "https"
24
}
25
locale := LocaleForRequest(c.Request())
26
- host := strings.TrimPrefix(c.Request().Host, locale.Subdomain+".")
+ host := strings.TrimPrefix(c.Request().Host, "www.")
27
+ host = strings.TrimPrefix(c.Request().Host, locale.Subdomain+".")
28
if subdomain != "" {
29
host = subdomain + "." + host
30
0 commit comments