openeuropa / oe_theme

Drupal 10 theme based on the Europa Component Library (ECL).
European Union Public License 1.2
31 stars 31 forks source link

No favicon, if sub-theme does not have a copy of the base theme favicons #1447

Open donquixote opened 4 months ago

donquixote commented 4 months ago

In

The path of the favicon is in the respective sub-theme, e.g.

function oe_theme_page_attachments_alter(array &$attachments) {
  [..]
  $active_theme = \Drupal::theme()->getActiveTheme();
      [..]
      $link[0]['href'] = base_path() . $active_theme->getPath() . "/images/favicons/$component_library/favicon.ico";

This means that:

donquixote commented 4 months ago

Thoughts for the solution:

But before introducing a change like this, you should have a look at existing sub-themes. I currently have no idea how many of them exist, and how many of them were updated to provide a copy of the favicons.

nagyad commented 1 week ago

We are looking to address the issue in the https://github.com/openeuropa/oe_theme/pull/1492 PR.