diff --git a/core/includes/common.inc b/core/includes/common.inc index 014e778..2048ab4 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -3524,14 +3524,6 @@ function drupal_pre_render_link($element) { $element['#markup'] = \Drupal::linkGenerator()->generate($element['#title'], $element['#route_name'], $element['#route_parameters'], $element['#options']); } else { - // Check if the current path is active. - $language_url = language(Language::TYPE_URL); - $is_current_path = ($element['#href'] == current_path() || ($element['#href'] == '' && drupal_is_front_page())); - $is_current_language = (empty($link['language']) || $link['language']->id == $language_url->id); - if ($is_current_path && $is_current_language) { - $element['#options']['attributes']['class'][] = 'active'; - } - $element['#markup'] = l($element['#title'], $element['#href'], $element['#options']); } return $element;