From 0863fb48dcb80fb73cc69cbac0051b03c0a004cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Parafi=C5=84ski?= Date: Mon, 5 Feb 2024 11:02:30 +0100 Subject: [PATCH] IBX-7689: Modified code to generate hyperlinks only for non-drafts --- .../Core/Resources/views/default/content/embed.html.twig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bundle/Core/Resources/views/default/content/embed.html.twig b/src/bundle/Core/Resources/views/default/content/embed.html.twig index a5b4fb3ac9..b94d19afba 100644 --- a/src/bundle/Core/Resources/views/default/content/embed.html.twig +++ b/src/bundle/Core/Resources/views/default/content/embed.html.twig @@ -5,7 +5,9 @@ {% else %} {% if location is defined %}

{{ content_name }}

- {% else %} + {% elseif content.contentInfo.mainLocationId is not null %}

{{ content_name }}

+ {% else %} +

{{ content_name }}

{% endif %} {% endif %}