Opened 12 years ago

Closed 12 years ago

Last modified 12 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 Holovaty
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:


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

In source:django/trunk/django/contrib/admin/views/, 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 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

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

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