fix error with error handler

pull/20/head
justcool393 2022-11-19 04:14:04 -06:00
parent 7b1cdc8b7f
commit e6904ddf2b
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@
</div>
</a>
</button>
{% if v.defaultsorting == 'new' %}
{% if v and v.defaultsorting == 'new' %} {# v check is required because the default template is used in error.html #}
<button type="button" class="col px-0 btn btn-dead m-0" style="background: None !important; border: None;">
<a href="/?sort=hot&t=all" class="text-decoration-none">
<div class="text-center {% if request.full_path=='/?sort=hot&t=all' %}text-primary{% else %}text-muted{% endif %}">