Unverified Commit 5fc643a6 authored by Brooke Heaton's avatar Brooke Heaton Committed by Mark Halliwell
Browse files

Issue #3089477 by brooke_heaton: External URLs do not have an internal route name

parent c938ff89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class Menu extends PreprocessBase implements PreprocessInterface {
        // If URL isn't a link, it's rendered as a <span> element. Add the
        // "navbar-text" class so it doesn't disrupt the navbar items.
        // @see https://www.drupal.org/project/bootstrap/issues/3053464
        if ($item['url']->getRouteName() === '<nolink>') {
        if ($item['url']->isRouted() && $item['url']->getRouteName() === '<nolink>') {
          $linkAttributes->addClass('navbar-text');
        }
      }