﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11125	comment redirect does not work with preview	james_stevenson	nobody	"I'm using rev. 10790, the latest version as of the time this ticket was submitted.

The django docs [http://docs.djangoproject.com/en/dev/ref/contrib/comments/#redirecting-after-the-comment-post say] that you can redirect after a comment is posted by including a field like this in your comment form:
{{{
<input type=""hidden"" name=""next"" value=""{% url my_comment_was_posted %}"" />
}}}

However, this is incorrect. The post_comment view in django.contrib.comments.views.comments does not preserve this field for the comment preview form. Thus in the preview form template, the next variable is always None. The reason why is clear:
{{{
def post_comment(request, next=None):
}}}
There is never a ""next"" keyword argument passed to this view, so next is always None."		closed	contrib.comments	1.1-beta		duplicate	next redirect		Unreviewed	1	0	0	0	0	0
