diff --git a/core/lib/Drupal/Core/Utility/LinkGenerator.php b/core/lib/Drupal/Core/Utility/LinkGenerator.php index e5fbfdb..195be50 100644 --- a/core/lib/Drupal/Core/Utility/LinkGenerator.php +++ b/core/lib/Drupal/Core/Utility/LinkGenerator.php @@ -149,7 +149,7 @@ public function generate($text, Url $url) { // Move attributes out of options since generateFromRoute() doesn't need // them. Include a placeholder for the href. - $attributes = array_merge(array('href' => ''), $variables['options']['attributes']); + $attributes = $variables['options']['attributes']; unset($variables['options']['attributes']); $url->setOptions($variables['options']);