Opened 10 years ago

Closed 10 years ago

#10496 closed (duplicate)

root_path in admin is incorrect when "include(" is used

Reported by: Evgeniy Ivanov Owned by: nobody
Component: contrib.admin Version: master
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


When I use include( 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 Changed 10 years ago by Alex Gaynor

Resolution: duplicate
Status: newclosed

This is a dupe of #10061

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