diff --git a/web/themes/asc_bootstrap/templates/system/user.html.twig b/web/themes/asc_bootstrap/templates/system/user.html.twig index fbf229ccc932c23343496fd475e07f5195138509..dcd6e75cccb5fffe9867be081a5e8c1caf51e013 100644 --- a/web/themes/asc_bootstrap/templates/system/user.html.twig +++ b/web/themes/asc_bootstrap/templates/system/user.html.twig @@ -129,22 +129,26 @@ {% endif %} {% if content.field_research_interests.0 != '' %} + {% set loopcount = 0 %} {% for item in content.field_research_interests %} {% if item['#title'] %} <div class="research-interests-ppl"> - <a href="/people?field_research_interests_target_id[{{ item['#url']|render|split('/')|last }}]={{ item['#url']|render|split('/')|last }}"> + <a href="/people?field_research_interests_target_id[{{ user.field_research_interests[loopcount].target_id }}]={{ user.field_research_interests[loopcount].target_id }}"> {{ item['#title'] }} + {% set loopcount = loopcount + 1 %} </a> </div> {% endif %} {% endfor %} {% endif %} {% if content.field_other.0 != '' %} + {% set loopcount = 0 %} {% for item in content.field_other %} {% if item['#title'] %} <div class="research-interests-ppl"> - <a href="/people?field_other_target_id[{{ item['#url']|render|split('/')|last }}]={{ item['#url']|render|split('/')|last }}"> + <a href="/people?field_other_target_id[{{ user.field_other[loopcount].target_id }}]={{ user.field_other[loopcount].target_id }}"> {{ item['#title'] }} + {% set loopcount = loopcount + 1 %} </a> </div> {% endif %}