diff -u b/core/profiles/demo_umami/config/install/views.view.articles_aside.yml b/core/profiles/demo_umami/config/install/views.view.articles_aside.yml --- b/core/profiles/demo_umami/config/install/views.view.articles_aside.yml +++ b/core/profiles/demo_umami/config/install/views.view.articles_aside.yml @@ -149,13 +149,50 @@ footer: { } empty: { } relationships: { } - arguments: { } + arguments: + nid: + id: nid + table: node_field_data + field: nid + relationship: none + group_type: group + admin_label: '' + default_action: default + exception: + value: all + title_enable: false + title: All + title_enable: false + title: '' + default_argument_type: node + default_argument_options: { } + default_argument_skip_url: false + summary_options: + base_path: '' + count: true + items_per_page: 25 + override: false + summary: + sort_order: asc + number_of_records: 0 + format: default_summary + specify_validation: false + validate: + type: none + fail: 'not found' + validate_options: { } + break_phrase: false + not: true + entity_type: node + entity_field: nid + plugin_id: node_nid display_extenders: { } cache_metadata: max-age: -1 contexts: - 'languages:language_content' - 'languages:language_interface' + - url - 'user.node_grants:view' - user.permissions tags: { } @@ -172,6 +209,7 @@ contexts: - 'languages:language_content' - 'languages:language_interface' + - url - 'user.node_grants:view' - user.permissions tags: { } diff -u b/core/profiles/demo_umami/demo_umami.info.yml b/core/profiles/demo_umami/demo_umami.info.yml --- b/core/profiles/demo_umami/demo_umami.info.yml +++ b/core/profiles/demo_umami/demo_umami.info.yml @@ -6,6 +6,7 @@ dependencies: - node - history + - big_pipe - block - breakpoint - ckeditor diff -u b/core/profiles/demo_umami/themes/umami/css/components/blocks/search/search.css b/core/profiles/demo_umami/themes/umami/css/components/blocks/search/search.css --- b/core/profiles/demo_umami/themes/umami/css/components/blocks/search/search.css +++ b/core/profiles/demo_umami/themes/umami/css/components/blocks/search/search.css @@ -3,6 +3,10 @@ * This file is used to style the search block. */ +.search-form + h2 { + margin: 0 14px 1rem; +} + .search-block-form { display: none; } @@ -60,13 +64,14 @@ } .form-search { width: 26em; + max-width: calc(100vw - 6.25em); height: auto; margin: 0; padding: 0.5em 6.25em 0.5em 2.25em; border: 1px solid #dbdbdb; border-right: none; border-radius: 3px; - font-size: 0.875rem; /* 14px */ + font-size: 0.875rem; line-height: normal; background: url(../../../../images/svg/search.svg) no-repeat 0.5em center #fff; background-size: 1.5em; diff -u b/core/profiles/demo_umami/themes/umami/umami.theme b/core/profiles/demo_umami/themes/umami/umami.theme --- b/core/profiles/demo_umami/themes/umami/umami.theme +++ b/core/profiles/demo_umami/themes/umami/umami.theme @@ -65,9 +65,19 @@ $request = \Drupal::request(); if ($route = $request->attributes->get(RouteObjectInterface::ROUTE_OBJECT)) { - $variables['current_page_title'] = \Drupal::service('title_resolver')->getTitle($request, $route); + // Search page titles aren't resolved using the title_resolver service - it + // will always return 'Search' instead of 'Search for [term]', which would + // give us a breadcrumb of Home >> Search >> Search. + // @see https://www.drupal.org/project/drupal/issues/2359901 + // @see https://www.drupal.org/project/drupal/issues/2403359 + if (($entity = $request->attributes->get('entity')) && $entity->getEntityType()->id() == 'search_page') { + $variables['current_page_title'] = $entity->getPlugin()->suggestedTitle(); + } + else { + $variables['current_page_title'] = \Drupal::service('title_resolver')->getTitle($request, $route); + } } // Since we are printing the 'Current Page Title', set the cache to match // the URL cache. If we don't, then we might end up with something like - // "Home >> Articles" on the Recipes page, which should read "Home >> Recipes". + // "Home > Articles" on the Recipes page, which should read "Home > Recipes". $variables['#cache']['contexts'][] = 'url'; }