Active
Project:
Menu Trails
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jun 2011 at 21:04 UTC
Updated:
23 Sep 2011 at 00:05 UTC
When viewing nodes, the breadcrumb is missing the last item in the trail. Taxonomy pages display the breadcrumbs correctly. The best way to illustrate this is probably an example. Say you have a taxonomy structure like the following:
Vocab
- term 1
- term 2
- - sub term 1
On the taxonomy page for sub term 1, the in_active_trail flag is set correctly: sub term 1, term 2 and Vocab are all marked in_active_trail.
The problem is when viewing a node with the taxonomy of sub term 1. Sub term 1 is not marked as in_active_trail so the breadcrumb stops at term 2. Any insight is appreciated.
Comments
Comment #1
adamjuran commentedSubscribe
Comment #2
omnitool commentedThe same thing happened to me. I found a workaround. Here's how I had it set up (link href in parenthesis):
Work (work/client1/print)
- Client 1 (work/client1/print)
- - Print (work/client1/print)
- - Video (work/client1/video)
If I went to "/work/client1/print" the in_active_trail for Client1 and Print would incorrectly become FALSE.
I noticed if I change the url for "Work", in_active_trail would be set correctly:
Work (work)
- Client 1 (work/client1/print)
- - Print (work/client1/print)
- - Video (work/client1/video)
That worked fine.
Knowing this, I used http://drupal.org/project/path_redirect to redirect from "work" (node/13 for me) to "work/client1/print". That solved it for me.
The original problem is curious though. I am tempted to add a bug report. but I've never done that and I'm not sure that something I don't understand is going on behind the scenes.