Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1997 -- Changed comments.py views to use relative URL for redi…

…rects. Thanks, phil@produxion.net

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2981 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 7f2ca03c0e1b888d6906ea016c0d1d504a88e2cb 1 parent be25b66
Adrian Holovaty authored May 26, 2006

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  django/contrib/comments/views/comments.py
4  django/contrib/comments/views/comments.py
@@ -252,7 +252,7 @@ def ratings(self):
252 252
         else:
253 253
             manipulator.do_html2python(new_data)
254 254
             comment = manipulator.save(new_data)
255  
-        return HttpResponseRedirect("/comments/posted/?c=%s:%s" % (content_type_id, object_id))
  255
+        return HttpResponseRedirect("../posted/?c=%s:%s" % (content_type_id, object_id))
256 256
     else:
257 257
         raise Http404, _("The comment form didn't provide either 'preview' or 'post'")
258 258
 
@@ -316,7 +316,7 @@ def post_free_comment(request):
316 316
         else:
317 317
             manipulator.do_html2python(new_data)
318 318
             comment = manipulator.save(new_data)
319  
-        return HttpResponseRedirect("/comments/posted/?c=%s:%s" % (content_type_id, object_id))
  319
+        return HttpResponseRedirect("../posted/?c=%s:%s" % (content_type_id, object_id))
320 320
     else:
321 321
         raise Http404, _("The comment form didn't provide either 'preview' or 'post'")
322 322
 

0 notes on commit 7f2ca03

Please sign in to comment.
Something went wrong with that request. Please try again.