fix redirect from add comment form.
svn path=/plone.app.discussion/trunk/; revision=27590
This commit is contained in:
parent
e4ac274781
commit
fe4e1390ef
@ -199,7 +199,8 @@ class AddComment(BrowserView):
|
|||||||
comment_id = conversation.addComment(comment)
|
comment_id = conversation.addComment(comment)
|
||||||
|
|
||||||
# Redirect to comment (inside a content object page)
|
# Redirect to comment (inside a content object page)
|
||||||
self.request.response.redirect(aq_parent(aq_inner(self.context)).absolute_url() + '#comment-' + str(comment_id))
|
#self.request.response.redirect(aq_parent(aq_inner(self.context)).absolute_url() + '#comment-' + str(comment_id))
|
||||||
|
self.request.response.redirect(aq_parent(aq_inner(self.context)).absolute_url() + '#' + str(comment_id))
|
||||||
|
|
||||||
class ReplyToComment(BrowserView):
|
class ReplyToComment(BrowserView):
|
||||||
"""Reply to a comment
|
"""Reply to a comment
|
||||||
|
Loading…
Reference in New Issue
Block a user