X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Flib%2FDrupal%2FCore%2FEventSubscriber%2FActiveLinkResponseFilter.php;h=b32cf84e22a4736ff2840a8b2a8a44d6d05bd5c6;hp=ea8bff10d50b07a59019dedfd698c04da649666f;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php b/web/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php index ea8bff10d..b32cf84e2 100644 --- a/web/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php +++ b/web/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php @@ -97,7 +97,6 @@ class ActiveLinkResponseFilter implements EventSubscriberInterface { )); } - /** * Sets the "is-active" class on relevant links. * @@ -127,6 +126,9 @@ class ActiveLinkResponseFilter implements EventSubscriberInterface { $search_key_current_path = 'data-drupal-link-system-path="' . $current_path . '"'; $search_key_front = 'data-drupal-link-system-path="<front>"'; + // Receive the query in a standardized manner. + ksort($query); + $offset = 0; // There are two distinct conditions that can make a link be marked active: // 1. A link has the current path in its 'data-drupal-link-system-path'