Put locale in compliance portal URLs
Path-segment locales make each language crawlable with self canonical and hreflang, while identity.locale persists an explicit choice without client storage or cookie banners. Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
@@ -33,10 +33,18 @@ import (
|
||||
|
||||
type (
|
||||
HeadData struct {
|
||||
Title string
|
||||
Description string
|
||||
OGURL string
|
||||
FaviconURL string
|
||||
Title string
|
||||
Description string
|
||||
OGURL string
|
||||
FaviconURL string
|
||||
HtmlLang string
|
||||
CanonicalURL string
|
||||
Hreflang []HreflangLink
|
||||
}
|
||||
|
||||
HreflangLink struct {
|
||||
Lang string
|
||||
Href string
|
||||
}
|
||||
|
||||
HeadDataFunc func(r *http.Request) HeadData
|
||||
|
||||
Reference in New Issue
Block a user