Notice when requested route path is no entity

Created on 24 September 2020, almost 4 years ago
Updated 23 May 2024, about 1 month 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.69.0 2024