5.2.x series
5.1.1, 5.2.1 6.0.0 (tested 02.04.2025)
I downloaded a release from https://www.mautic.org/mautic-releases
8.2
Firefox, Chrome, Safari
I have encountered an issue with the Landing Page Builder in Mautic. When I edit a landing page and switch to the code edit mode in the GrapeJS builder, parts of the <head> content are duplicated into the <body> section after saving. This behavior repeats every time the page is saved while in this mode, resulting in additional duplications with each save.
Expected Behavior: The <head> content should remain within the <head> section, as defined in the base.html.twig or other relevant templates, and should not be duplicated into the <body> section after making changes using the code edit function in the GrapeJS builder.
Actual Behavior: Parts of the <head> content, including <meta> tags and <title>, are repeatedly copied into the <body> section of the generated HTML page.
Additional Information: This issue occurs with the default “Blank” theme, which indicates that it is not directly related to custom HTML or themes. It seems to be an issue with how the HTML code is processed in the editor.
Screenshot: <img width="1680" alt="mautic_auto_duplicate_issue" src="https://github.com/user-attachments/assets/b135422c-a615-44a8-bf32-eff0118e6552" />
No response
<br /><hr> Care about this issue? Want to get it resolved sooner? If you are a <a href='https://www.mautic.org/become-a-member-of-mautic'>member of Mautic</a>, you can add some funds to the <a href='https://opencollective.com/mautic/projects/bounties'>Bounties Project</a> so that the person who completes this task can claim those funds once it is merged by a member of the core team! Read the docs <a href='https://contribute.mautic.org/product-team/mautic-bounty-programme'>here.</a>