aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--apioforum/thread.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/apioforum/thread.py b/apioforum/thread.py
index e6d3690..5f4b0af 100644
--- a/apioforum/thread.py
+++ b/apioforum/thread.py
@@ -55,7 +55,8 @@ def create_post(thread_id):
)
db.commit()
flash("post posted postfully")
- return redirect(post_jump(thread_id, post_id))
+ return redirect(post_jump(thread_id, post_id))
+ return redirect(url_for('thread.view_thread',thread_id=thread_id))
@bp.route("/delete_post/<int:post_id>", methods=["GET","POST"])
def delete_post(post_id):