Entity redirect assumes its always a node.

Created on 19 December 2022, almost 2 years ago

Problem/Motivation

FormsStepsAlter::setNextRoute assumes the entity redirect is redirecting back to a node. and uses "entity.node.canonical" which throws a MissingMandatoryParametersException
Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("node") to generate a URL for route "entity.node.canonical". in Drupal\Core\Routing\UrlGenerator->doGenerate()

Steps to reproduce

Create steps as usual, but if you choose "current entity" in Redirection policy: once you finalize the form and submit it will throw the above error

Proposed resolution

Including a patch to use entity.[entity type id].canonical when redirecting.

🐛 Bug report
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

🇯🇴Jordan akhoury

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.

No activities found.

Production build 0.71.5 2024