Notice when requested route path is no entity

Created on 24 September 2020, about 4 years ago
Updated 23 May 2024, 6 months ago

Problem/Motivation

A notice is triggered when the router is accessed using a path that is not an entity

Notice: Trying to access array offset on value of type null in Drupal\decoupled_router\EventSubscriber\RouterPathTranslatorSubscriber->findEntityAndKeys() (line 280

Steps to reproduce

Request following route: router/translate-path?path=admin/content

Proposed resolution

Add check to fix the notice

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇧🇪Belgium nils.destoop

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

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