From b43db4f0e297b2c38ee5bbc6f629791a653cbc75 Mon Sep 17 00:00:00 2001 From: Chaiwat Suttipongsakul Date: Tue, 26 Feb 2019 16:35:49 +0700 Subject: [PATCH] stay on the same page after pin,link,boost,delete,block --- templates/utils.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/templates/utils.html b/templates/utils.html index 56eab23..3f54f3d 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -115,7 +115,15 @@ {% 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 aid = obj.id | quote_plus %} {% endif %}