When enabling the registration flow ' approval needed by administrators' a few emails are being send to SM and User.
One of these emails does not contain the nice HTML styling:

Account details for eef at Open Social (approved)


This email is send right after the SM has 'unblocked' the user.
All the other emails in this flow do have styling applied.

Jaap-jan mentions possible cause:
Its probably the "admin theme" thing right? so if the admin theme is active during the action it will also use the admin theme for the e-mail?

(I have marked it as minor, since my guess is that this registration flow is not used often.)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Evelienschut created an issue. See original summary.

jochemvn’s picture

This can be fixed by altering the route and making the 'user.admin_create' route no longer an _admin_route.

Basically create a RouteSubscribe and in the alterRoutes function there you can

if ($route = $collection->get('user.admin_create')) {
  $route->setOption('_admin_route', FALSE);
}

This solution is rather simple, but changing an _admin_route might cause some issues. Therefore it needs some testing. Also it need to be communicated with the ECI team, since they have production platforms (SSGT) where this function is being used pretty extensively.

bramtenhove’s picture

Status: Active » Fixed

Thanks for being patient, we've recently fixed this. It has been released in 1.6.

See the pull request at https://github.com/goalgorilla/open_social/pull/583.

Status: Fixed » Closed (fixed)

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