From ee21c7d4b0a4b4362f42239bb2ff7b4b7f6ac3b9 Mon Sep 17 00:00:00 2001 From: Piero Nicolli Date: Tue, 12 Dec 2023 12:34:21 +0100 Subject: [PATCH] fix: schema.org metadata per i servizi --- .../ItaliaTheme/View/ServizioView/ServizioMetatag.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx b/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx index 0e89643ac..975927c43 100644 --- a/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx +++ b/src/components/ItaliaTheme/View/ServizioView/ServizioMetatag.jsx @@ -44,7 +44,7 @@ const ServizioMetatag = ({ content }) => { if (richTextHasContent(content.a_chi_si_rivolge)) { schemaOrg.audience = { '@type': 'Audience', - name: fieldDataToPlainText(content.a_chi_si_rivolge), + audienceType: fieldDataToPlainText(content.a_chi_si_rivolge), }; } @@ -52,8 +52,6 @@ const ServizioMetatag = ({ content }) => { schemaOrg.availableChannel.serviceUrl = toPublicURL( content.canale_digitale_link, ); - } else { - schemaOrg.availableChannel.serviceUrl = ''; } if (content.ufficio_responsabile[0]) {