Backwards compatibility with "shelf" urls

This commit is contained in:
Mouse Reeve
2021-03-31 09:50:16 -07:00
parent 4a490d25a8
commit f8ce9b0956
4 changed files with 6 additions and 5 deletions

View File

@ -42,7 +42,7 @@
{% endif %}
</div>
{% with user|username as username %}
{% if 'user/'|add:username|add:'/books' not in request.path %}
{% if 'user/'|add:username|add:'/books' not in request.path and 'user/'|add:username|add:'/shelf' not in request.path %}
<nav class="tabs">
<ul>
{% url 'user-feed' user|username as url %}