Opened 19 years ago

Closed 19 years ago

Last modified 18 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: no UI/UX: no

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 by Adrian Holovaty, 19 years ago

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