summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-05-26 04:06:46 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-05-26 04:06:46 +0000
commit7f2ca03c0e1b888d6906ea016c0d1d504a88e2cb (patch)
treed36433a01b8fdae600c0f5d735fc4b72c90f31d4
parentbe25b661b1b2179273b886ec45d4b449a9997a8d (diff)
Fixed #1997 -- Changed comments.py views to use relative URL for redirects. Thanks, phil@produxion.net
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/comments/views/comments.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/contrib/comments/views/comments.py b/django/contrib/comments/views/comments.py
index ecacc1f1c5..316f3e719b 100644
--- a/django/contrib/comments/views/comments.py
+++ b/django/contrib/comments/views/comments.py
@@ -252,7 +252,7 @@ def post_comment(request):
else:
manipulator.do_html2python(new_data)
comment = manipulator.save(new_data)
- return HttpResponseRedirect("/comments/posted/?c=%s:%s" % (content_type_id, object_id))
+ return HttpResponseRedirect("../posted/?c=%s:%s" % (content_type_id, object_id))
else:
raise Http404, _("The comment form didn't provide either 'preview' or 'post'")
@@ -316,7 +316,7 @@ def post_free_comment(request):
else:
manipulator.do_html2python(new_data)
comment = manipulator.save(new_data)
- return HttpResponseRedirect("/comments/posted/?c=%s:%s" % (content_type_id, object_id))
+ return HttpResponseRedirect("../posted/?c=%s:%s" % (content_type_id, object_id))
else:
raise Http404, _("The comment form didn't provide either 'preview' or 'post'")