Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / EventSubscriber / ActiveLinkResponseFilter.php
index ea8bff10d50b07a59019dedfd698c04da649666f..b32cf84e22a4736ff2840a8b2a8a44d6d05bd5c6 100644 (file)
@@ -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'