- Issue created by @jmauricio
- Assigned to jmauricio
- π΅πΉPortugal jmauricio
Ok, so i found the solution: you have to force the admin theme in the drupalSettings ajaxPageState variable.
Like this:/** * Implements hook_js_settings_alter(). */ function MODULENAME_js_settings_alter(array &$settings, \Drupal\Core\Asset\AttachedAssetsInterface $assets) { $settings['ajaxPageState']['theme'] = \Drupal::config('system.theme')->get('admin'); }
- Issue was unassigned.
- Status changed to Needs review
4 months ago 4:19pm 13 August 2024 - Status changed to Postponed: needs info
4 months ago 4:33pm 13 August 2024 - πΊπΈUnited States smustgrave
@jmauricio if you've answered your own question can this then be closed
- Status changed to Fixed
4 months ago 10:07am 14 August 2024