Accessing a page that doesn't exist causes a fatal error in EntityRouteHelper::getContentEntityFromRoute()

Created on 26 November 2025, about 2 months ago

Problem/Motivation

That service does not check if there is a route object before accessing it. This is very likely caused by 📌 Use a placeholder for the navigation toolbar Active but there might be other cases where this could have happened as well.

Steps to reproduce

Visit /does-not-exist.

Note that the error is only appended to the regular response and not immediately visible because it's a big pipe lazy builder.

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component

navigation.module

Created by

🇨🇭Switzerland berdir Switzerland

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024