Pages with metatags containing a webform lead to duplicate submissions

Created on 22 March 2024, 8 months ago
Updated 25 April 2024, 7 months ago

This issue was initially reported in this task where the direction was given to open a new issue for the metatag piece. It was then also brought up in this related task .

To reproduce this add a webform reference field and field value to an entity and set the meta description to the default [node:summary] value. Then submit the webform from the entity route and note that there is a duplicate submission.

🐛 Bug report
Status

Active

Version

6.2

Component

Code

Created by

🇺🇸United States damondt

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

  • Issue created by @damondt
  • 🇺🇸United States damondt
  • Is the form actually rendered twice in the HTML?

  • 🇺🇸United States damondt

    @cilefen It's not rendered twice on the page, where I encountered this and in the related issues where this is mentioned the only step to reproduce is that it go through the render process, being output on a page isn't a requirement to reproduce.

  • Status changed to Postponed 8 months ago
  • 🇮🇳India naveenvalecha New Delhi

    @damondt,

    I tried to replicate it on standard profile with olivero as frontend theme and claro as backend theme. I am not able to reproduce it. Can you share the steps to reproduce it?

  • 🇺🇸United States damondt

    @naveenvalecha The issue description contains all steps to reproduce. To provide it more verbose and in list form:

    1. add a webform reference field to an entity bundle (ie content type)
    2. add an entity (ie node), select a webform for that reference field, and save the entity
    3. enable metatags for that entity type and set the meta description to a token that will render the webform (ie the default [node:summary])
    4. ensure that field is output for the view mode you will view the entity in (ie default) and view the entity
  • Status changed to Active 8 months ago
  • 🇺🇸United States damondt

    The issue tag "needs tests" is for when code has been written but it needs tests, removing tag and changing back to "active".

  • 🇺🇸United States damondt
  • 🇮🇳India naveenvalecha New Delhi

    @damondt I'm not able to reproduce with the above steps. Can you add a failed tests to confirm it?

  • 🇺🇸United States jrockowitz Brooklyn, NY

    Conceptual this issue is starting to make sense because if a webform is rendered twice, you would get duplicate submissions.

  • 🇺🇸United States jrockowitz Brooklyn, NY

    Marking this critical because if this issue impacts a site, it is a critical issue.

  • 🇺🇸United States damondt

    Update: it appears having confirmation type of inline may be requirement to reproduce

Production build 0.71.5 2024