##// END OF EJS Templates
Redirect to post inside thread, if the post was opened as a thread
neko259 -
r1803:13514221 default
parent child Browse files
Show More
@@ -52,8 +52,8 b' class ThreadView(BaseBoardView, PostMixi'
52
52
53 # If this is not OP, don't show it as it is
53 # If this is not OP, don't show it as it is
54 if not opening_post.is_opening():
54 if not opening_post.is_opening():
55 return redirect(opening_post.get_thread().get_opening_post()
55 return redirect('{}#{}'.format(opening_post.get_thread().get_opening_post()
56 .get_absolute_url())
56 .get_absolute_url(), opening_post.id))
57
57
58 if not form:
58 if not form:
59 form = PostForm(error_class=PlainErrorList)
59 form = PostForm(error_class=PlainErrorList)
General Comments 0
You need to be logged in to leave comments. Login now