Problem/Motivation

When using the Dashboard module with Layout Builder, the theme negotiator does not account for dashboard-specific routes. As a result, the wrong theme (typically the front-end theme) is loaded when accessing Dashboard layout pages. This causes inconsistencies in styling, layout issues, or even administrative UI problems.

Steps to reproduce

  1. Enable the Dashboard module.
  2. Access the dashboard layout builder page.
  3. Notice that the incorrect theme is used instead of the admin theme, breaking visual consistency and sometimes functionality.

Proposed resolution

Update the VarbaseLayoutBuilderThemeNegotiator logic to include dashboard layout routes as valid candidates for theme negotiation.

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-10.1.0-alpha2
    , varbase_layout_builder-10.2.0-alpha3

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

  • Issue #3528092 by n.ghunaim: Ensure Correct Theme Is Loaded When Using the Dashboard Module
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

n.ghunaim created an issue. See original summary.

n.ghunaim’s picture

Issue summary: View changes

n.ghunaim’s picture

Status: Active » Needs review
rajab natshah’s picture

rajab natshah’s picture

Assigned: Unassigned » s.halawani
Issue summary: View changes
Issue tags: +varbase-10.1.0-alpha2, +varbase_layout_builder-10.2.0-alpha3
rajab natshah’s picture

Assigned: s.halawani » Unassigned
Status: Needs review » Fixed
rajab natshah’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

rajab natshah’s picture

Issue summary: View changes