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

  • tag in its output that is typically used by a template and its related CSS.

    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

    DeeZone’s picture

    Version: 5.14 » 5.12
    DeeZone’s picture

    Status: Active » Closed (fixed)