diff --git a/core/modules/shortcut/shortcut.module b/core/modules/shortcut/shortcut.module index 72c2c92..28d081f 100644 --- a/core/modules/shortcut/shortcut.module +++ b/core/modules/shortcut/shortcut.module @@ -393,11 +393,7 @@ function shortcut_preprocess_page(&$variables) { // Load the router item corresponding to the current page. $request = \Drupal::request(); $item = array(); - if ($request->attributes->has('_legacy')) { - // @todo Remove once the old router system got removed. - $item = menu_get_item(); - } - elseif ($route = $request->attributes->get(RouteObjectInterface::ROUTE_NAME)) { + if ($route = $request->attributes->get(RouteObjectInterface::ROUTE_NAME)) { $item['href'] = $request->attributes->get('_system_path'); // @todo What should be done on a 404/403 page? $item['access'] = TRUE;