Cleanup: Head title shouldn't have a special case for views.

Created on 21 April 2023, almost 2 years ago

Problem/Motivation

template_preprocess_html contains:

  // @todo Remove once views is not bypassing the view subscriber anymore.
  //   @see https://www.drupal.org/node/2068471
  elseif ($is_front_page) {
    $head_title = [
      'title' => t('Home'),
      'name' => $site_config->get('name'),
    ];
  }

That issue was closed. So we should be safe to remove that special case.

Proposed resolution

We probably need a test ensuring this. The test should create a view, set it as the home, and ensure the title is Home and not the views title.

Remaining tasks

Patch removing that code, test.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

📌 Task
Status

Active

Version

10.1 ✨

Component
Theme  →

Last updated 3 days ago

Created by

🇪🇸Spain penyaskito Seville 💃, Spain 🇪🇸, UTC+2 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024