Skip to content

Commit

Permalink
Articles: absolute url
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbrown-io committed Aug 16, 2024
1 parent 49b265c commit c04b909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/field/field--field_ucb_article_byline.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% if byline_entity.field_author_person_page|length > 0 %}
{% set author_person_page_entity = byline_entity.field_author_person_page.0.entity %}
{% if author_person_page_entity %}
{% set url = path('entity.node.canonical', {'node': author_person_page_entity.id()}) %}
{% set url = url('entity.node.canonical', {'node': author_person_page_entity.id()}) %}
<a href="{{ url }}">{{ byline_entity.name.value }}</a>
{% else %}
<span>{{ byline_entity.name.value }}</span>
Expand Down

0 comments on commit c04b909

Please sign in to comment.