Hello,

When you create a variant for node view and use token for title, the title variable on breadcrumb will use the variant label.

Ex:

The breadcrumb is: Home >> Node view

I hacked breadcrumb preprocess and changed the title.

function MYTHEME_preprocess_breadcrumb(&$variables) {
  if (($node = \Drupal::routeMatch()->getParameter('node')) && $variables['breadcrumb']) {
    $variables['title'] = $node->getTitle();
  }
}

Any idea why breadcrumbs is not reading the token title.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

m.abdulqader created an issue. See original summary.

japerry’s picture

Status: Active » Postponed
m.abdulqader’s picture

After debugging the code this issue is related to page manager and not panels, in all cases we need to enhance title support for panels.

Related to #2665328 Variants take entity label not the variant title

DamienMcKenna’s picture

Version: 8.x-3.x-dev » 8.x-4.x-dev