Page not found after node saves when Mercury editor is not enabled

Created on 29 March 2025, 18 days ago

Problem/Motivation

Trying to save a node form without the mercury editor enabled leads to a "Page not found" error and the node not saved.

Steps to reproduce

I have several node types with mercury editor and mercury editor live edit enabled.
However, I have one node type that is too field-ish and I don't use Mercury editor or live edit there.

When I try to save the node, the form action leads to a path

node/4/form_action_p_pvdeGsVG5zNF_XLGPTvYSKCf43t8qZYSwcfZl2uzM

which gives "Page not found" and the node doesn't get updated.

Proposed resolution

Apparently the method "attachFormAttributes" in MercuryEditorLiveEditModuleHandler does not check if Mercury editor is enabled on the content type and sets the attributes regardless.

Adding a check with $this->isMercuryEditorActive($entity) before that is done fixes the problem for me.

Remaining tasks

Add the check.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇩🇪Germany Kate Heinlein Berlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024