#951 closed defect (fixed)
admin_url is without /admin/ path in bookmarklets
Reported by: | 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.
Note:
See TracTickets
for help on using tickets.
(In [1522]) Fixed #951 -- Admin bookmarklets no longer assume admin is rooted at '/'