Skip to content

Display information block throws an error when on a empty node context #132

@pcambra

Description

@pcambra

When on node/add pages, $node = $this->getContextValue('node'); returns an empty node which ends up trying to render a link without the relevant information it needs to be rendered and throws a PHP error:

Symfony\Component\Routing\Exception\InvalidParameterException: Parameter "node" for route "format_strawberryfield.display_settings" must match "[^/]++" ("" given) to generate a corresponding URL. in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 204 of core/lib/Drupal/Core/Routing/UrlGenerator.php). 

Related to #120

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions