Skip to content

Commit

Permalink
Update field--field-k-centre-website-url.html.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
andmor- committed Sep 30, 2024
1 parent fc48cc3 commit ffe244c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

{% if label_hidden %}
{% for item in items %}
<a{{ attributes.addClass(classes, 'field--item btn btn-outline-primary') }} href="{{ item.content }}">Visit the Centre</a>
<a{{ attributes.addClass(classes, 'field--item btn btn-outline-primary') }} href="{{ item.content['#url'].toString }}">Visit {{ item.content['#title'] }}</a>
{% endfor %}
{% else %}
<div{{ attributes.addClass(classes) }}>
Expand Down

0 comments on commit ffe244c

Please sign in to comment.