fix redirect after a reply has been added.

svn path=/plone.app.discussion/trunk/; revision=27199
This commit is contained in:
Timo Stollenwerk 2009-05-28 15:16:19 +00:00
parent 49aab7389b
commit 66f4640ac7

View File

@ -146,4 +146,4 @@ class ReplyToComment(BrowserView):
new_re_id = replies.addComment(comment) new_re_id = replies.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(reply_to_comment_id))