You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I won't create a PR for this unless it's deemed worthy at the Galactus level. Until then, I've implemented this in our custom CLF theme by copying Galactus menu--main.html.twig and making the change.
darkodevubc
changed the title
Main menu links are expanded even when their children and not accessible by current user.
Main menu links are expanded even when their children are not accessible by current user.
Sep 16, 2021
Steps to reproduce
Symptom
Visit the site as anon
Parent menu gets the dropdown button when it shouldn't, since the child is not accessible
Fix
Before rendering the dropdown button in menu--main.html.twig, check for children with item.below:
{% if item.below %} <button class="btn dropdown-toggle" data-toggle="dropdown"><span class="ubc7-arrow blue down-arrow"></span> </button> {% endif %}
The text was updated successfully, but these errors were encountered: