forked from forks/microblog.pub
Stay on the same page after pin,link,boost,delete,block (#43)
This commit is contained in:
parent
5b38c5e723
commit
552344a2c5
1 changed files with 8 additions and 0 deletions
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue