Layout Builder – Error when changing the order of paragraphs with AJAX enabled.

Created on 23 September 2024, about 2 months ago

Problem/Motivation

After enabling Layout Builder, adding a paragraph field to a section with AJAX enabled, an error occurs when trying to change the order of paragraphs using the arrow icon:

Path: /frontend-editing/paragraphs/9/down?view_mode_id=default&_wrapper_format=drupal_ajax. Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException: in Drupal\Core\Routing\AccessAwareRouter->checkAccess() (line 118 of /var/www/html/web/core/lib/Drupal/Core/Routing/AccessAwareRouter.php).

After refreshing the page, the paragraphs change their order.

Steps to reproduce

  1. Enable the layout_builder and frontend_editing modules.
  2. Configure frontend_editing to use AJAX.
  3. In the content type (CT) that contains the paragraph field, enable Layout Builder (LB) in one of the display modes and configure the layout to display the paragraph field.
  4. Add content with paragraphs.
  5. Navigate to the added content and try to move one of the paragraphs using the arrow icon (up or down).
🐛 Bug report
Status

Active

Version

1.7

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024