# HG changeset patch # User neko259 # Date 2017-01-06 22:44:22 # Node ID 13514221698c2aa5dc5c547a975dc247eb626f25 # Parent 5f0f8146a6db4d3c6779dd2ef9f3ba42854c5c14 Redirect to post inside thread, if the post was opened as a thread diff --git a/boards/views/thread/thread.py b/boards/views/thread/thread.py --- a/boards/views/thread/thread.py +++ b/boards/views/thread/thread.py @@ -52,8 +52,8 @@ class ThreadView(BaseBoardView, PostMixi # If this is not OP, don't show it as it is if not opening_post.is_opening(): - return redirect(opening_post.get_thread().get_opening_post() - .get_absolute_url()) + return redirect('{}#{}'.format(opening_post.get_thread().get_opening_post() + .get_absolute_url(), opening_post.id)) if not form: form = PostForm(error_class=PlainErrorList)