feat: add canonical and alternate links for SEO optimization in AnnuncioDettaglio
This commit is contained in:
parent
991367be56
commit
3e601725ea
1 changed files with 11 additions and 0 deletions
|
|
@ -99,6 +99,17 @@ const AnnuncioDettaglio: NextPage<AnnuncioProps> = ({
|
||||||
property="og:logo"
|
property="og:logo"
|
||||||
/>
|
/>
|
||||||
<meta content="Infoalloggi.it" property="og:site_name" />
|
<meta content="Infoalloggi.it" property="og:site_name" />
|
||||||
|
<link href={meta?.ogUrl || ""} rel="canonical" />
|
||||||
|
<link
|
||||||
|
href={`${env.NEXT_PUBLIC_BASE_URL}/annuncio/${cod}`}
|
||||||
|
hrefLang="it"
|
||||||
|
rel="alternate"
|
||||||
|
/>
|
||||||
|
<link
|
||||||
|
href={`${env.NEXT_PUBLIC_BASE_URL}/en/annuncio/${cod}`}
|
||||||
|
hrefLang="en"
|
||||||
|
rel="alternate"
|
||||||
|
/>
|
||||||
</Head>
|
</Head>
|
||||||
<AnnuncioView cod={cod} flag={flag} />
|
<AnnuncioView cod={cod} flag={flag} />
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue