fix redirect from add comment form.

svn path=/plone.app.discussion/trunk/; revision=27590
This commit is contained in:
Timo Stollenwerk 2009-06-21 13:27:02 +00:00
parent e4ac274781
commit fe4e1390ef

View File

@ -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