We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 98c7f33 + b10b1dc commit 38156e1Copy full SHA for 38156e1
prefix_finder/frontend/templates/sidebar.html
@@ -72,7 +72,11 @@
72
</form>
73
74
{% else %}
75
- <a href="{% url "results" %}" class="button button--main-color button--block"><i class="material-icons">arrow_back</i><span>Back to List</span></a>
+ {% if request.META.HTTP_REFERER %}
76
+ <a href="{{ request.META.HTTP_REFERER }}" class="button button--main-color button--block"><i class="material-icons">arrow_back</i><span>Back to List</span></a>
77
+ {% else %}
78
+ <a href="{% url "results" %}" class="button button--main-color button--block"><i class="material-icons">arrow_back</i><span>Back to List</span></a>
79
+ {% endif %}
80
{% endif %}
81
</div>
82
0 commit comments