From 7550e95d5c174a017714ef97c07b6e21a2e237c8 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sat, 31 Oct 2009 12:33:59 +0000 Subject: [PATCH] fix redirection after a comment has been added. svn path=/plone.app.discussion/trunk/; revision=30986 --- plone/app/discussion/browser/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index ead81ae..66b07b9 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -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"))