Fix redirection to topic page after comment merge
This commit is contained in:
parent
853193cbd8
commit
c051f754a1
|
@ -285,7 +285,7 @@ def merge_post(postid):
|
|||
db.session.commit()
|
||||
|
||||
if isinstance(comment.thread.owner_post, Topic):
|
||||
return redirect(url_for('forum_topic', f=comment.thread.owner_post.forum_id, page=comment.thread_id))
|
||||
return redirect(url_for('forum_topic', f=comment.thread.owner_post.forum, page=[comment.thread.owner_post, -1]))
|
||||
elif isinstance(comment.thread.owner_post, Program):
|
||||
return redirect(url_for('program_view', page=[comment.thread.owner_post, -1]))
|
||||
|
||||
|
|
Loading…
Reference in New Issue