From b1832bcec045520cdc1e4755b5e31af27d8b5096 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 3 Nov 2019 10:29:32 +0100 Subject: [PATCH] Fix/improve redirection in the UI --- templates/utils.html | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/templates/utils.html b/templates/utils.html index 11e4234..8952b9d 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -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 %}