Django

Code

Changeset 2981

Show
Ignore:
Timestamp:
05/25/06 23:06:46 (2 years ago)
Author:
adrian
Message:

Fixed #1997 -- Changed comments.py views to use relative URL for redirects. Thanks, phil@produxion.net

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/comments/views/comments.py

    r2809 r2981  
    253253            manipulator.do_html2python(new_data) 
    254254            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)) 
    256256    else: 
    257257        raise Http404, _("The comment form didn't provide either 'preview' or 'post'") 
     
    317317            manipulator.do_html2python(new_data) 
    318318            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)) 
    320320    else: 
    321321        raise Http404, _("The comment form didn't provide either 'preview' or 'post'")