Skip to content

Commit

Permalink
academy/templates/academy_page: change back link from parent to reffr…
Browse files Browse the repository at this point in the history
…er page fixes #278
  • Loading branch information
philli-m authored and Rineee committed Mar 2, 2023
1 parent 37eb623 commit 1d9d4cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/academy/templates/academy/academy_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
<div class="container">
<div class="row justify-content-center">
<div class="col-md-8">
<a class="btn btn-none ps-0 mb-3" href="{{ page.get_parent.url }}" aria-label="{% trans 'To overview' %}">
<a
class="btn btn-none ps-0 mb-3"
href="{% if request.META.HTTP_REFERER %}{{ request.META.HTTP_REFERER|escape }}{% else %}{{ page.get_parent.url }}{% endif %}"
aria-label="{% trans 'To overview' %}">
<img class="academy__btn--back" src="{% static 'images/icon_arrow_back.svg' %}" alt="{% trans 'To overview' %}"/>
</a>
<div class="academy__sans-serif mb-4 text--upper">{{ page.get_topics_display }}
Expand Down

0 comments on commit 1d9d4cb

Please sign in to comment.