fix: pass the whole event link object into link

This commit is contained in:
Oliver Davies 2021-12-09 08:54:41 +00:00
parent d47b518082
commit 46e5fbcced

View file

@ -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 %}