From 855d3fde49b69550e4b49b77e0d78c693c7c8906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Parafi=C5=84ski?= Date: Tue, 6 Feb 2024 17:12:37 +0100 Subject: [PATCH] IBX-7689: Modified code to generate hyperlinks only for non-drafts (#329) --- .../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 %}