Breadcrumbs ignore PrefixMiddleware
Bug #268867 reported by
Matt Nordhoff
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
loggerhead |
Invalid
|
Undecided
|
Toshio Kuratomi |
Bug Description
Hi, I'm using Loggerhead's trunk and serve-branches. I use PrefixMiddleware so Loggerhead is mounted on "/loggerhead/".
The new breadcrumbs stuff (revision 220 of the trunk) ignores PrefixMiddleware. As an example, say I'm at a directory listing at /loggerhead/foo/. The breadcrumb at the top will say "Browsing (root)/foo". "(root)" links to / instead of /loggerhead/, and "foo" links to "/foo" (which doesn't exist period) instead of "/loggerhead/foo".
BTW, once this is fixed, it should also be linking to "/loggerhead/foo/", with a trailing slash. If someone clicks on a link to "/loggerhead/foo", they'll just be redirected there.
Related branches
lp:~toshio/loggerhead/breadcrumb
- No reviews requested
Changed in loggerhead: | |
assignee: | nobody → toshio |
status: | In Progress → Fix Committed |
assignee: | toshio → nobody |
status: | Fix Committed → In Progress |
assignee: | nobody → toshio |
To post a comment you must log in.
Try the branch I just attached. It contains a single change to the breadcrumb template that seems to fix things here. Basically, it looks like urls that are strings are not modified by PrefixMiddleware. You have to use the python:url() function.