diff --git a/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx
index 770cd2cbc..f163664d6 100644
--- a/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx
+++ b/src/components/ItaliaTheme/Blocks/Listing/CompleteBlockLinksTemplate.jsx
@@ -15,6 +15,10 @@ import {
ListingLinkMore,
ListingImage,
} from 'design-comuni-plone-theme/components/ItaliaTheme';
+import { Icon } from 'design-comuni-plone-theme/components/ItaliaTheme';
+import { isInternalURL } from '@plone/volto/helpers/Url/Url';
+
+import config from '@plone/volto/registry';
const CompleteBlockLinksTemplate = ({
items,
@@ -54,6 +58,7 @@ const CompleteBlockLinksTemplate = ({
item={!isEditMode ? item : null}
href={isEditMode ? '#' : null}
data-element={id_lighthouse}
+ className={'no-external-if-link'}
>
{image &&
{image}
}
@@ -61,6 +66,19 @@ const CompleteBlockLinksTemplate = ({
{item.title}
+ {item['@type'] === 'Link' &&
+ !isInternalURL(
+ item.remoteUrl || item.getRemoteUrl,
+ ) &&
+ config.settings.siteProperties
+ .markSpecialLinks && (
+
+ )}
{show_description && (
diff --git a/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx b/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx
index 7c37a16d4..bdc57a58e 100644
--- a/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx
+++ b/src/components/ItaliaTheme/Blocks/Listing/SliderTemplate.jsx
@@ -161,6 +161,7 @@ const SliderTemplate = ({
{full_width ? (
diff --git a/theme/ItaliaTheme/Blocks/_completeBlockLinkstemplate.scss b/theme/ItaliaTheme/Blocks/_completeBlockLinkstemplate.scss
index 0d3f5f327..e8643f771 100644
--- a/theme/ItaliaTheme/Blocks/_completeBlockLinkstemplate.scss
+++ b/theme/ItaliaTheme/Blocks/_completeBlockLinkstemplate.scss
@@ -67,9 +67,18 @@
font-size: 1rem !important;
font-weight: 700 !important;
line-height: 1.44444rem;
+ a {
+ color: $secondary-text !important;
+ }
+ .external-link {
+ fill: $external-link-fill-buttons !important;
+ }
}
.card:after {
content: none;
}
+ .no-external-if-link > .external-link {
+ display: none;
+ }
}
diff --git a/theme/ItaliaTheme/Views/_slider.scss b/theme/ItaliaTheme/Views/_slider.scss
index 1ed3ecac9..3b1c83bc8 100644
--- a/theme/ItaliaTheme/Views/_slider.scss
+++ b/theme/ItaliaTheme/Views/_slider.scss
@@ -21,4 +21,7 @@
padding: 0;
margin: 0;
}
+ .no-external-if-link > .external-link {
+ display: none;
+ }
}