#18987: Django contrib admin redirection error on actions
-------------------------------------+-------------------------------------
     Reporter:  audirs2 [at]         |                    Owner:  nobody
  gmail.com                          |                   Status:  new
         Type:  Uncategorized        |                  Version:  1.4
    Component:  contrib.admin        |               Resolution:
     Severity:  Normal               |             Triage Stage:
     Keywords:  redirect             |  Unreviewed
  remote_auth_backend nginx          |      Needs documentation:  0
    Has patch:  0                    |  Patch needs improvement:  0
  Needs tests:  0                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by audirs2 [at] gmail.com):

 Upon further investigation it appears to be caused by the HTTP module
 django/http/__init__.py in build_absolute_uri

 Where the location full path is returned incorrectly by urlparse in the
 form .domain.com/admin/appname/add/  and self.path is used by
 get_full_path both have the same issue.

 Suggest changing the behaviour of build abosolute url to check for this
 behaviour as their should always be a leading slash on the url so could
 check if that is the case and split the url if required.  e.g.

 {{{
    self.path.split('/',1)[1]
 }}}

 to obtain the actual path?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18987#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to