Add hreflang tags for en/uk language switching
Single URL for both languages is correct for client-side i18n — signals to search engines that both language versions exist at the same URL. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
a3040d9852
commit
d42ab963bc
1 changed files with 3 additions and 0 deletions
|
|
@ -27,6 +27,9 @@ const SEO: React.FC<SEOProps> = ({
|
|||
<title>{resolvedTitle}</title>
|
||||
<meta name="description" content={resolvedDescription} />
|
||||
<link rel="canonical" href={url} />
|
||||
<link rel="alternate" hrefLang="en" href={url} />
|
||||
<link rel="alternate" hrefLang="uk" href={url} />
|
||||
<link rel="alternate" hrefLang="x-default" href={url} />
|
||||
|
||||
<meta property="og:title" content={resolvedTitle} />
|
||||
<meta property="og:description" content={resolvedDescription} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue