Opened 15 years ago

Closed 15 years ago

#10496 closed (duplicate)

root_path in admin is incorrect when "include(admin.site.urls)" is used

Reported by: Evgeniy Ivanov Owned by: nobody
Component: contrib.admin Version: dev
Severity: Keywords:
Cc: 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 use include(admin.site.urls) root_path is 'admin/' (it's set in init() of AdminSite). So I get wrong links.
I've noticed it's set only in admin_root (and it will be set to '/admin/' in my case), thus when I use deprecated "r'admin/(.*)', gk_admin_site.root" everything is fine.
Comments in the code say, that root_path and root shouldn't be used, but it's still used in admin templates for links like "Log out", "Change password".

Change History (1)

comment:1 by Alex Gaynor, 15 years ago

Resolution: duplicate
Status: newclosed

This is a dupe of #10061

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