fix redirection after a comment has been added.

svn path=/plone.app.discussion/trunk/; revision=30986
This commit is contained in:
Timo Stollenwerk 2009-10-31 12:33:59 +00:00
parent 017cb15157
commit 7550e95d5c

View File

@ -212,7 +212,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
else:
# Redirect to comment (inside a content object page)
self.request.response.redirect(
aq_parent(aq_inner(self.context)).absolute_url() +
aq_parent(aq_inner(self.context)).absolute_url() + \
'#' + str(comment_id))
@button.buttonAndHandler(_(u"Cancel"))