From fe4e1390efecae5f86591a26ebe643501df67d8f Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Sun, 21 Jun 2009 13:27:02 +0000 Subject: [PATCH] fix redirect from add comment form. svn path=/plone.app.discussion/trunk/; revision=27590 --- plone/app/discussion/browser/comments.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plone/app/discussion/browser/comments.py b/plone/app/discussion/browser/comments.py index a831155..e6ff7fc 100644 --- a/plone/app/discussion/browser/comments.py +++ b/plone/app/discussion/browser/comments.py @@ -199,7 +199,8 @@ class AddComment(BrowserView): comment_id = conversation.addComment(comment) # 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): """Reply to a comment