Skip to content

Commit afbe8b0

Browse files
committed
Merge branch 'support/fix-external-search-promotions' into dev
2 parents f68619c + 5f63d47 commit afbe8b0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rca/project_styleguide/templates/patterns/molecules/search-result/search-result.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{% load static wagtailcore_tags wagtailsearchpromotions_tags wagtailimages_tags %}
22

33
<div class="search-result">
4+
{% if pick.external_link_url %}
5+
<a class="search-result__link grid" href="{{ pick.external_link_url }}">
6+
{% else %}
47
<a class="search-result__link grid" href="{% pageurl result %}">
8+
{% endif %}
59
<div class="search-result__header layout__@large-start-two layout__@large-span-one">
6-
<h3 class="search-result__heading heading heading--five">{% firstof result.listing_title result.title %}</h3>
10+
<h3 class="search-result__heading heading heading--five">{% firstof pick.external_link_text result.listing_title result.title %}</h3>
711
{% if search_pick %}<div class="search-result__editor-pick body body--support">Recommended result</div>{% endif %}
812
</div>
913
{% with meta=result.specific.listing_meta %}

0 commit comments

Comments
 (0)