Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#951 closed defect (fixed)

admin_url is without /admin/ path in bookmarklets

Reported by: Nebojša Đorđević - nesh <nesh@…> Owned by: adrian
Component: contrib.admin Version:
Severity: normal Keywords:
Cc: nesh@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When I fixed #950 I still got invalid url-s from bookmarklets.html.

In source:django/trunk/django/contrib/admin/views/doc.py#1476, url is generated like this:

def bookmarklets(request):
    return render_to_response('admin_doc/bookmarklets', {
        'admin_url': "%s://%s" % (os.environ.get('HTTPS') == 'on' and 'https' or 'http', request.META['HTTP_HOST']),
    }, context_instance=DjangoContext(request))

and that only returns my site root without /admin/ path.

Change History (1)

comment:1 Changed 10 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [1522]) Fixed #951 -- Admin bookmarklets no longer assume admin is rooted at '/'

Note: See TracTickets for help on using tickets.
Back to Top