From c573f48873ca37a7a9871d65be6877f49b1ef0be Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 8 Jul 2018 12:31:59 +0200 Subject: [PATCH] Fix replying in the admin UI Fixes #22 --- app.py | 2 +- templates/utils.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index b4748c8..322e1e9 100644 --- a/app.py +++ b/app.py @@ -472,7 +472,7 @@ def admin_login(): session["challenge"] = None session["logged_in"] = True - return redirect(request.args.get("redirect") or "/admin/notifications") + return redirect(request.args.get("redirect") or url_for("admin_notifications")) else: abort(401) diff --git a/templates/utils.html b/templates/utils.html index b56b9fc..2ba93ce 100644 --- a/templates/utils.html +++ b/templates/utils.html @@ -72,7 +72,7 @@ {% if ui and session.logged_in %} {% set aid = obj.id | quote_plus %} -reply +reply {% set perma_id = obj.id | permalink_id %} {% set redir = request.path + "#activity-" + perma_id %}