Commit a66a3632 authored by mikcat's avatar mikcat Committed by Mykhailo Hurei
Browse files

Issue #3276431 by mikcat: Active menu item ID views argument default not...

Issue #3276431 by mikcat: Active menu item ID views argument default not working if url has query string
parent 03842ffb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ class MenuLinkContentId extends ArgumentDefaultPluginBase implements CacheableDe
   */
  public function getArgument() {
    if ($this->options['menu']) {
      $current_path = $this->currentRequest->getRequestUri();
      $current_path = $this->currentRequest->getPathInfo();
      /** @var \Drupal\Core\Menu\MenuTreeParameters $parameters */
      $parameters = $this->menuTree->getCurrentRouteMenuTreeParameters($this->options['menu']);
      $parameters->onlyEnabledLinks();