diff --git a/core/profiles/demo_umami/config/install/views.view.frontpage.yml b/core/profiles/demo_umami/config/install/views.view.frontpage.yml index f3271c0aed..b8dad0f242 100644 --- a/core/profiles/demo_umami/config/install/views.view.frontpage.yml +++ b/core/profiles/demo_umami/config/install/views.view.frontpage.yml @@ -356,7 +356,7 @@ display: empty: false tokenize: false content: - value: "

Recipes

\r\n

Explore recipes across every type of occasion, ingredient, and skill level

" + value: "

Recipes

\r\n

Explore recipes across every type of occasion, ingredient, and skill level

" format: full_html plugin_id: text display_plugin: page diff --git a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php index fe7838d58c..e27c6a19a3 100644 --- a/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php +++ b/core/profiles/demo_umami/tests/src/Functional/DemoUmamiProfileTest.php @@ -172,26 +172,4 @@ public function testDemonstrationWarningMessage() { $web_assert->pageTextNotContains('This site is intended for demonstration purposes.'); } - /** - * Test to validate proper hidden 'h1' working for the title element. - * - * This test validates that the 'h1' element in system-branding is present on - * the front page, and absent on the other pages. It also validates that it - * has the visually hidden class. - */ - public function testTitleElementFrontPageIsHidden() { - $permissions = []; - // Load in the 'front' page. - $this->drupalGet(''); - $web_assert = $this->assertSession(); - - $web_assert->elementsCount("css", "h1", 1); - $web_assert->elementsCount("css", "h1.visually-hidden", 1); - $web_assert->elementsCount("css", "h1", 1); - - // Load the 'login' page. - $this->drupalGet("/user/login"); - $web_assert = $this->assertSession(); - $web_assert->elementsCount("css", "#block-umami-branding h1.visually-hidden", 0); - } } diff --git a/core/profiles/demo_umami/themes/umami/templates/components/branding/block--system-branding-block.html.twig b/core/profiles/demo_umami/themes/umami/templates/components/branding/block--system-branding-block.html.twig index 5adb75d7ec..6887b8b5e0 100644 --- a/core/profiles/demo_umami/themes/umami/templates/components/branding/block--system-branding-block.html.twig +++ b/core/profiles/demo_umami/themes/umami/templates/components/branding/block--system-branding-block.html.twig @@ -19,9 +19,6 @@ {{ 'Home'|t }} {% endif %} - {% if is_front %} -

{{ 'Home'|t }}

- {% endif %} {% if site_name %}
{{ site_name }} diff --git a/core/profiles/demo_umami/themes/umami/umami.theme b/core/profiles/demo_umami/themes/umami/umami.theme index 1507ff1a48..d8b61ff515 100644 --- a/core/profiles/demo_umami/themes/umami/umami.theme +++ b/core/profiles/demo_umami/themes/umami/umami.theme @@ -50,17 +50,6 @@ function umami_preprocess_block(&$variables) { if (isset($variables['elements']['content']['#block_content'])) { $variables['attributes']['class'][] = Html::getClass('block-type-' . $variables['elements']['content']['#block_content']->bundle()); } - // Set a variable based on the path.matcher. - if (!isset($variables['is_front'])) { - try { - $variables['is_front'] = \Drupal::service('path.matcher')->isFrontPage(); - } catch (\Exception $e) { - $variables['is_front'] = false; - } - } - - // Ensure the cache varies correctly. - $variables['#cache']['contexts'][] = 'url.path.is_front'; } /**