Fix/improve redirection in the UI

master
Thomas Sileo 2019-11-03 10:29:32 +01:00
rodzic 3048de04e8
commit b1832bcec0
1 zmienionych plików z 1 dodań i 9 usunięć

Wyświetl plik

@ -90,15 +90,7 @@
{% if session.logged_in %}
{% set perma_id = obj.id | permalink_id %}
{% if request.args.get('older_than') %}
{% set redir = request.path + "?older_than=" + request.args.get('older_than') + "#activity-" + perma_id %}
{% elif request.args.get('newer_than') %}
{% set redir = request.path + "?newer_than=" + request.args.get('newer_than') + "#activity-" + perma_id %}
{% else %}
{% set redir = request.path + "#activity-" + perma_id %}
{% endif %}
{% set redir = request.path + "?"+ request.query_string.decode() + "#activity-" + perma_id %}
{% set aid = obj.id | quote_plus %}
{% endif %}