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.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | forms_steps-correct-route-3327945-2.patch | 938 bytes | akhoury |
Issue fork entity_form_steps-3327945
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
akhouryHere is the patch
Comment #3
akhouryComment #4
akhouryThis is the wrong module, I thought I was on form_steps module