diff --git a/web/themes/asc_bootstrap/templates/node/node--event.html.twig b/web/themes/asc_bootstrap/templates/node/node--event.html.twig index cd614eec137fce2ef246759839c27b167d6df99a..15b196734bf8319a8eef3c728236f01677b9cb2a 100644 --- a/web/themes/asc_bootstrap/templates/node/node--event.html.twig +++ b/web/themes/asc_bootstrap/templates/node/node--event.html.twig @@ -239,7 +239,7 @@ {% for item in content.field_evt_taxonomy %} {% if item['#title'] %} <div class="taxonomy-events"> - <a href="/{{ evpattern }}?field_evt_taxonomy_target_id_1={{ item['#url']|render|split('/')|last }}"> + <a href="/{{ evpattern }}?field_evt_taxonomy_target_id_1={{ item['#options'].entity.tid.0.value }}"> {{ item['#title'] }} </a> </div> @@ -250,7 +250,7 @@ {% for item in content.field_evt_taxonomy2 %} {% if item['#title'] %} <div class="taxonomy-events"> - <a href="/{{ evpattern }}?field_evt_taxonomy2_target_id={{ item['#url']|render|split('/')|last }}"> + <a href="/{{ evpattern }}?field_evt_taxonomy2_target_id={{ item['#options'].entity.tid.0.value }}"> {{ item['#title'] }} </a> </div> diff --git a/web/themes/asc_bootstrap/templates/node/node--news-story.html.twig b/web/themes/asc_bootstrap/templates/node/node--news-story.html.twig index b163a5c79bfeb02133b5ac257aa604b60c57213b..0af6d73317552992dbe559301427ba0eb488c0ae 100644 --- a/web/themes/asc_bootstrap/templates/node/node--news-story.html.twig +++ b/web/themes/asc_bootstrap/templates/node/node--news-story.html.twig @@ -124,7 +124,7 @@ {% for item in content.field_news_terms_1 %} {% if item['#title'] %} <div class="taxonomy-news"> - <a href="/news?field_news_terms_1_target_id={{ item['#url']|render|split('/')|last }}"> + <a href="/news?field_news_terms_1_target_id={{ item['#options'].entity.tid.0.value }}"> {{ item['#title'] }} </a> </div> @@ -134,7 +134,7 @@ {% for item in content.field_news_terms_2 %} {% if item['#title'] %} <div class="taxonomy-news"> - <a href="/news?field_news_terms_2_target_id={{ item['#url']|render|split('/')|last }}"> + <a href="/news?field_news_terms_2_target_id={{ item['#options'].entity.tid.0.value }}"> {{ item['#title'] }} </a> </div>