ssertionError: $url must be a string or object of type \Drupal\Core\Url in assert() (line 246 of core/lib/Drupal/Core/Template/TwigExtension.php).

Created on 23 January 2023, about 2 years ago

Problem/Motivation

Migrating a site, can lead to the url being null and throwing an error.

Steps to reproduce

Proposed resolution

Do a null check before rendering the url.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: duplicate

Version

3.0

Component

Code

Created by

🇩🇪Germany Grevil

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

Comments & Activities

Production build 0.71.5 2024