#223 closed defect (fixed)
[PATCH] Breadcrumb navigation broken in admin documentation
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | contrib.admin | Version: | |
Severity: | trivial | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The breadcrumb navigation in the admin documentation templates uses absolute references, rather than relative ones. This means that it won't work if you have your admin server running from anything other than the "root" directory.
Example:
My admin server is running at http://example.com:8000/admin/
But the code for the breadcrumb looks like this:
<div class="breadcrumbs"> <a href="/">Home</a> › <a href="/doc/">Documentation</a> › <a href="/doc/models/">Models</a> › {{ name }} </div>
Which means that the link for documentation (e.g.) will go to http://example.com:8000/doc/, instead of http://example.com:8000/admin/doc.
The links need to be changed to use the relative style links of the other page templates. e.g.,
<div class="breadcrumbs"> <a href="../../../">Home</a> › <a href="../../">Documentation</a> › <a href="../">Models</a> › {{ name }} </div>
The affected files are in django/conf/admin_templates/doc
Attachments (1)
Change History (4)
Changed 14 years ago by
Attachment: | broken_breadcrumbs.diff added |
---|
comment:1 Changed 14 years ago by
Summary: | Breadcrumb navigation broken in admin documentation → [PATCH] Breadcrumb navigation broken in admin documentation |
---|
comment:2 Changed 14 years ago by
Status: | new → assigned |
---|
comment:3 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Simple Patch (svn diff results, for my working copy versus rev 335)