Block redirect setting with node present collision

Created on 19 October 2022, over 2 years ago
Updated 3 February 2023, about 2 years ago

Problem/Motivation

We are using a webform block with its 'redirect' setting activated.
Upon submitting the webform, we noticed that the presence of the block on a node page creates some collision in the logic
of the form id of the block, originating from the get source entity from route logic.
The end result is that the form cannot be submitted since the original and after-the-redirect generated form id for the block webform differ.

Steps to reproduce

Will provide a simple test that shows the breakage.

Proposed resolution

Inspect the interplay between @WebformSourceEntity plugins and WebformSubmissionForm::getFormId()
Enhance/amend the logic that generates the form ids.
Explore the option of using contexts, specifically for webform blocks.

Remaining tasks

Demonstrate the breakage.
Provide a solution.
Update tests to capture the more complex conditions between node-in-context and webform blocks.

πŸ› Bug report
Status

RTBC

Version

6.1

Component

Code

Created by

πŸ‡¨πŸ‡­Switzerland stefanos.petrakis@gmail.com Biel, Switzerland

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.71.5 2024