From 46e5fbcced1bcae8c3844f4f62eeca3117880024 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Thu, 9 Dec 2021 08:54:41 +0000 Subject: [PATCH] fix: pass the whole event link object into `link` --- web/themes/custom/opdavies/templates/paragraph--event.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/themes/custom/opdavies/templates/paragraph--event.html.twig b/web/themes/custom/opdavies/templates/paragraph--event.html.twig index 3f8bce3..2475169 100644 --- a/web/themes/custom/opdavies/templates/paragraph--event.html.twig +++ b/web/themes/custom/opdavies/templates/paragraph--event.html.twig @@ -52,7 +52,7 @@ {% set eventLink = content.field_link.0 %} {% if eventLink %} - {{ link(content.field_name, eventLink['#url_title'], { class: 'inline-block' }) }} + {{ link(content.field_name, eventLink['#url'], { class: 'inline-block' }) }} {% else %} {{ content.field_name }} {% endif %}