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.

CommentFileSizeAuthor
#2 forms_steps-correct-route-3327945-2.patch938 bytesakhoury
Command icon 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

    akhoury created an issue. See original summary.

    akhoury’s picture

    StatusFileSize
    new938 bytes

    Here is the patch

    akhoury’s picture

    Status: Active » Closed (cannot reproduce)
    akhoury’s picture

    This is the wrong module, I thought I was on form_steps module