Skip to content
Snippets Groups Projects
Commit 85bb6a0f authored by Brian Canini's avatar Brian Canini
Browse files

fixing Taxonomy link bug on news and events pages

parent cff2b942
No related branches found
No related tags found
No related merge requests found
......@@ -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>
......
......@@ -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>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment