diff --git a/core/modules/search/lib/Drupal/search/Controller/SearchController.php b/core/modules/search/lib/Drupal/search/Controller/SearchController.php index 18f38e3f4fe73d609c37bddd70444e9993f99031..bda72592326ab7cf19fa6ea01d1862a059dc79f0 100644 --- a/core/modules/search/lib/Drupal/search/Controller/SearchController.php +++ b/core/modules/search/lib/Drupal/search/Controller/SearchController.php @@ -77,6 +77,7 @@ public function view(Request $request, $plugin_id = NULL, $keys = NULL) { if (!$keys && $request->query->has('keys')) { $keys = trim($request->query->get('keys')); } + $build['#title'] = $this->t('Search'); if (!empty($plugin_id)) { $active_plugin_info = $this->searchManager->getActiveDefinitions(); diff --git a/core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php b/core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php index dfb634c55757cc6d51b5da658988100c7957b805..258d8db4c3939b30d3a20ff9647c402bfbf0d027 100644 --- a/core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php +++ b/core/modules/search/lib/Drupal/search/Routing/SearchRouteSubscriber.php @@ -42,6 +42,7 @@ protected function routes(RouteCollection $collection) { $path = 'search/' . $search_info['path'] . '/{keys}'; $defaults = array( '_content' => 'Drupal\search\Controller\SearchController::view', + '_title' => $search_info['title'], 'plugin_id' => $plugin_id, 'keys' => '', );