Update Open Graph image handling to use og_url for improved image management
This commit is contained in:
parent
986409b739
commit
a6fa1b960b
1 changed files with 3 additions and 2 deletions
|
|
@ -105,14 +105,15 @@ const AnnuncioDettaglio: NextPage<AnnuncioProps> = ({
|
|||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content={`${cod} | ${titolo}`} />
|
||||
<meta property="og:description" content={description} />
|
||||
<meta
|
||||
{/* <meta
|
||||
property="og:image"
|
||||
content={
|
||||
data.url_immagini
|
||||
? `${env.NEXT_PUBLIC_BASE_URL}${data.url_immagini[0]}`
|
||||
: ""
|
||||
}
|
||||
/>
|
||||
/> */}
|
||||
<meta property="og:image" content={data.og_url || ""} />
|
||||
<meta
|
||||
property="og:logo"
|
||||
content={`${env.NEXT_PUBLIC_BASE_URL}/Infoalloggi.png`}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue