From 801da965ae69ab38bfd5f211f29e25b6cc95c95a Mon Sep 17 00:00:00 2001 From: Ante Prkacin Date: Wed, 8 Oct 2025 10:37:58 +0200 Subject: [PATCH] NGSTACK-659 update 'content_fields' twig template to add 'rel' attribute if link is set to open in new tab --- .../content/parts/content_fields.html.twig | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/templates/themes/app/content/parts/content_fields.html.twig b/templates/themes/app/content/parts/content_fields.html.twig index 5aaccd650..c9151ffcd 100644 --- a/templates/themes/app/content/parts/content_fields.html.twig +++ b/templates/themes/app/content/parts/content_fields.html.twig @@ -38,7 +38,20 @@ {% else %} {% if ng_enhancedlink_has_location(field.value.reference) %} {% set href = path('ibexa.url.alias', { 'contentId': field.value.reference }) ~ suffix %} - {{ label }} + + {{ label }} + {% endif %} {% endif %} {% elseif field.value.isTypeExternal %} @@ -49,7 +62,20 @@ {% elseif field.value.isTargetEmbed %}
{{ label }}
{% else %} - {{ label }} + + {{ label }} + {% endif %} {% endif %}