- 🇷🇴Romania bbu23
Hi. I also have issues with the active trail in menus.
I was looking at theweb/core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php
file, which callsweb/core/lib/Drupal/Core/Menu/MenuActiveTrail.php
, where in my case two different paths are getting the default$active_trail = ['' => ''];
instead of the actual trail. So, a page like home can == to a page like search because of that. This means that whichever page gets accessed first, that one will be the active trail and gets cached like that.