πŸ‡ΊπŸ‡ΈUnited States @medinasod

Account created on 21 May 2014, over 10 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States medinasod

+1 for this issue.

πŸ‡ΊπŸ‡ΈUnited States medinasod

I'm still getting duplicate id attributes on the <nav> and <ul> html elements.

πŸ‡ΊπŸ‡ΈUnited States medinasod

Thanks for your help, @cilefen. There aren't any menu-related contrib modules, but there is a ton of custom code (it's a site I inherited). There is a menu-related custom module, but I'm not sure how it would cause this issue because it's implementing hook menu_edit_form_alter. The only patch being applied is for viewsreference, so that shouldn't be a problem. We have another Drupal 9.5 site and it doesn't have the same issue (the inaccessible links don't appear for anonymous users), but that site is built in a more standard way (less custom code). I've struggled getting xcode working with phpstorm and lando, so I was just hoping someone might have had experience with this problem and what might have fixed it for them in the past. I found this:

// Only render accessible links.
      if ($data->access instanceof AccessResultInterface && !$data->access->isAllowed()) {
        continue;
      }

in /web/core/lib/Drupal/Core/Menu/MenuLinkTree.php (line 245), so it seems like the links shouldn't be displaying.
Thank you for the tip about debugging. I'll try to get xdebug working (fingers crossed!).

Production build 0.71.5 2024