Allow for auto unlock of content with layout builder

Created on 8 July 2025, 21 days ago

I have created this module: Content Lock Layout Release to ensure content that is saved in layout builder is unlocked.

This module is built for sites using Content Lock and Layout Builder, where users often forget to unlock content or are left on the same edit screen after saving. It saves editors from having to manually click “Unlock” and confirm the action, reducing friction and saving time during content updates.

Improves the content editing experience by automatically releasing the content lock after saving via Layout Builder, and redirecting the user to the View page of the node they just edited.

I'm wondering if this functionality could be borrowed, and added to content_lock directly as a submodule potentially, so that it's not a separate module.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇺🇸United States bdanin

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

Comments & Activities

  • Issue created by @bdanin
  • 🇬🇧United Kingdom alexpott 🇪🇺🌍

    Looking at the code in the module it feels like it would need some adaptation - for example the way it works will only result in the desired behaviour on english sites because the form op is in english. I think all the URL and from button text matching is very fragile. In order to bring this into the module what would be create is to have some steps to reproduce the issue from the standard profile in this issue summary and then we can consider the best UX and DX to implement the feature.

Production build 0.71.5 2024