When both a view and a node (type "Page" for example) have the same URL value, the primary links module fails to generate an "active" (class="menu-1-3-2-active vs class="menu-1-3-2 ...") property for the
Steps to generate bug:
1. Create a view that has a value of "learn" (for example) in the URL field
2. Create a node (Page for example) with a URL path setting of "learn" as well.
3. Create a Menu entry under the Primary links category which has a path value of "learn".
4. Load a Drupal web page that displays the primary links output.
5. Review the generated HTML, the link which points to "learn" will not contain an "-active" class assignment.
6. Delete either the view or the node.
7. Review the HTML output for Primary links again - the output will now contain the "-active" class assignment.
Expected Behavior - the "-active" class value should be present when either the view or the page node is being viewed. This becomes an issue with CSS is triggered by the presence of the class "-active" assignment.
Comments
Comment #1
DeeZone commentedComment #2
DeeZone commented