diff -u b/core/modules/search/src/Form/SearchPageForm.php b/core/modules/search/src/Form/SearchPageForm.php --- b/core/modules/search/src/Form/SearchPageForm.php +++ b/core/modules/search/src/Form/SearchPageForm.php @@ -69,7 +69,10 @@ ); $form['help_link'] = array( - '#markup' => \Drupal::linkGenerator()->generate($this->t('Search help'), Url::fromRoute('search.help_' . $this->entity->id())), + '#type' => 'link', + '#url' => new Url('search.help_' . $this->entity->id()), + '#title' => $this->t('Search help'), + '#options' => array('attributes' => array('class' => 'search-help-link')), ); // Allow the plugin to add to or alter the search form.