Fix portal SEO, Korean copy, and favicon
Custom-domain base URLs included the request path, so canonical/hreflang doubled routes; emit SEO links only with an absolute origin. Rewrite Korean mismatch strings to avoid literal particle parentheses, rename HtmlLang to HTMLLang, and ship public favicons so Vite no longer 404s the fallback icon. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -97,9 +97,11 @@ func NewSNIMiddleware(visitorSvc *visitor.Service) func(next http.Handler) http.
|
||||
}
|
||||
}
|
||||
|
||||
// Origin only — consumers append their own paths (SEO, sitemap,
|
||||
// robots, brand assets, OAuth). Including r.URL.Path here would
|
||||
// duplicate the route (e.g. /fr/documents/fr/documents).
|
||||
baseURL := &url.URL{
|
||||
Host: r.Host,
|
||||
Path: r.URL.Path,
|
||||
Scheme: "https",
|
||||
}
|
||||
baseURLString := baseURL.String()
|
||||
|
||||
Reference in New Issue
Block a user