Skip to content
Snippets Groups Projects
Unverified Commit f9c2f8a1 authored by Fredrik Jonsson's avatar Fredrik Jonsson Committed by GitHub
Browse files

Merge pull request #2905 from HyphaApp/fix/missing_related_pages

Check if related page exist before trying to render it.
parents e1bc71fa 5e171987
No related branches found
No related tags found
No related merge requests found
{% load i18n wagtailcore_tags wagtailimages_tags %} {% load i18n wagtailcore_tags wagtailimages_tags %}
{% with page=page.specific %} {% with page=page.specific %}
{% if page %}
<a class="card" href="{% pageurl page %}"> <a class="card" href="{% pageurl page %}">
<h6 class="card__subheading"> <h6 class="card__subheading">
{% if page.is_open %} {% if page.is_open %}
...@@ -21,4 +22,5 @@ ...@@ -21,4 +22,5 @@
{% endif %} {% endif %}
<svg class="icon icon--card-pixels"><use xlink:href="#arrow-head-pixels--transparent"></use></svg> <svg class="icon icon--card-pixels"><use xlink:href="#arrow-head-pixels--transparent"></use></svg>
</a> </a>
{% endif %}
{% endwith %} {% endwith %}
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