Nested Layout Builder Blocks Trigger Frontend Theme on AJAX Calls

Created on 12 January 2025, 2 months ago

Problem/Motivation

When using nested blocks in Layout Builder, any AJAX call results in the frontend theme being applied instead of the admin theme. This causes visual inconsistencies and breaks the expected administrative user interface.

Steps to reproduce

  1. Enable Layout Builder on a content type and configure it to use nested blocks.
  2. Add nested blocks within a Layout Builder page.
  3. Trigger an AJAX call within the admin interface.
  4. Observe that the frontend theme is applied instead of the admin theme during the AJAX call response.

Proposed resolution

Ensure that AJAX responses respect the administrative theme context when nested blocks are used in Layout Builder. This may involve: verifying and enforcing theme negotiation logic during AJAX requests.

Remaining tasks

  • ✅ File an issue about this project
  • ❌ Addition/Change/Update/Fix to this project
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support on feature change/addition
  • ➖ User Guide Documentation support on feature change/addition
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Code review from 1 Varbase core team member
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ❌ Update Release Notes and Update Helper on new feature change/addition
  • ❌ Release

Varbase update type

  • ✅ No Update
  • ➖ Optional Update
  • ➖ Forced Update
  • ➖ Forced Update if Unchanged

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Active

Version

10.0

Component

Code

Created by

🇯🇴Jordan n.ghunaim Amman - Jordan

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