diff --git a/core/includes/path.inc b/core/includes/path.inc index 6b8eb8c..991d247 100644 --- a/core/includes/path.inc +++ b/core/includes/path.inc @@ -216,7 +216,7 @@ function drupal_valid_path($path, $dynamic_allowed = FALSE) { if (!empty($item['route_name'])) { $map = array(); $route = Drupal::service('router.route_provider')->getRouteByName($item['route_name']); - $item = menu_item_route_access($route, $path, $map); + $item['access'] = menu_item_route_access($route, $path, $map); } $menu_admin = FALSE; return $item && $item['access'];