From 74bb4f5c299885fd17a98d36cbeebd1d27ef6a99 Mon Sep 17 00:00:00 2001 From: John Nduli Date: Tue, 24 Sep 2024 09:59:19 +0300 Subject: feat: improve redirect for edits to symbol page --- gn2/wqflask/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gn2/wqflask') diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index 3f8991f2..f073859c 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -1635,7 +1635,7 @@ def edit_wiki(comment_id: int): "species": post_data["species"], "comment": post_data["comment"], "email": post_data["email"], - "web_url": post_data["web_url"], + "web_url": web_url, "initial": post_data["initial"], "categories": post_data.getlist("genecategory"), "reason": post_data["reason"], @@ -1657,7 +1657,7 @@ def edit_wiki(comment_id: int): post_res = post_response.json() flash(f"Success: {post_res}", "alert-success") - return redirect(url_for("edit_wiki", comment_id=comment_id)) + return redirect(url_for("display_genewiki_page", symbol=post_data["symbol"])) @app.route("/genewiki", methods=["POST", "GET"]) -- cgit v1.2.3