Embedded forms receive an EnforcedResponseException

Created on 22 April 2019, about 5 years ago
Updated 19 April 2023, about 1 year ago

I'm trying to use the entity embed module to embed Webform.

After submission, the form isn't rendered again. I've looked, and it's because of (by default) the form submit returns a Redirect Response (EnforcedResponseException) rather than the renderable form array. This triggers the try/catch in ParagraphEmbedFilter::process(). Disabling the redirect results in the form displaying, but leaves all form values filled in.

I think that this exception may work with any other form.

A similar issue is also here https://www.drupal.org/project/entity_embed/issues/2748581 β†’

πŸ› Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine genzer

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.

Production build 0.69.0 2024