diff --git a/elections2021/templates/elections2021/_article_card.html b/elections2021/templates/elections2021/_article_card.html index 1311a7739f2c67e35b8d3d56e9f3673d93045335..c6fda01f1300614fe0b53c9d90e8b23b3987529f 100644 --- a/elections2021/templates/elections2021/_article_card.html +++ b/elections2021/templates/elections2021/_article_card.html @@ -1,7 +1,7 @@ {% load wagtailcore_tags wagtailimages_tags %} <article class="card card--hoveractive article-card article-card-pirati-stan {{ article.card_css_class }}"> <div class="article-card-cover"> - <a href="{% pageurl article %}"> + <a href="{{ article.get_url }}"> {% image article.image width-400 as img %} <img src="{{ img.url }}" alt="{{ article.title }}"> </a> @@ -21,7 +21,7 @@ </div> </div> <div class="card__body article-card__body"> - <a href="{% pageurl article %}"> + <a href="{{ article.get_url }}"> <h1 class="card-headline mb-4">{{ article.title }}</h1> </a> <p class="card-body-text flex-grow">{{ article.perex }}</p>