aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorJohn Nduli2024-09-24 09:59:19 +0300
committerBonfaceKilz2024-11-07 09:12:20 +0300
commit74bb4f5c299885fd17a98d36cbeebd1d27ef6a99 (patch)
tree267401ee94265e9db18201d14bb3c19d4e548108 /gn2
parent578a8ebe14bcc116c8cf12736a06cd56595b80fb (diff)
downloadgenenetwork2-74bb4f5c299885fd17a98d36cbeebd1d27ef6a99.tar.gz
feat: improve redirect for edits to symbol page
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/views.py4
1 files changed, 2 insertions, 2 deletions
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"])