Navigation top bar not present on entity overrides

Created on 27 August 2025, 10 days ago

Problem/Motivation

The top bar items are using:

$this->entityRouteHelper->getContentEntityFromRoute()
$this->entityRouteHelper->isContentEntityRoute()

to check if it needs to be rendered.

Those will call indirectly core/modules/navigation/src/EntityRouteHelper.php:

protected function getContentEntityTypePaths(EntityTypeInterface $entity_type): array {
    $paths = array_filter($entity_type->getLinkTemplates(), fn ($template) => $template !== 'collection', ARRAY_FILTER_USE_KEY);
    if ($this->isLayoutBuilderEntityType($entity_type)) {
      $paths[] = $entity_type->getLinkTemplate('canonical') . '/layout';
    }

    return array_fill_keys($paths, $entity_type->id());
  }

Which has a special case for Layout Builder.

Steps to reproduce

Proposed resolution

Quickly looking, this does not seem alterable.

Maybe by altering entity type templates, and in this case need to register all paths per view mode (/node/{node}/display/full)

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.0

Component

UI/UX/Islands

Created by

🇫🇷France Grimreaper France 🇫🇷

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