- Issue created by @nicxvan
- π΅π±Poland wotnak
There doesn't currently seem to be a config option for that. Both hidding toolbar and linking logo to drupal.org is hardcoded.
It however can be fixed with a bit of custom code. Logo link is hardcoded in the page--mercury-editor template that can be overriden and showing admin toolbar is controlled by the `_hide_admin_toolbar` route option that can be altered β . I'm using following route subscriber to do that:
class MercuryEditorRouteSubscriber extends RouteSubscriberBase { /** * {@inheritdoc} */ protected function alterRoutes(RouteCollection $collection): void { // Show admin navigation on Mercury Editor route. $mercuryEditorRoute = $collection->get('mercury_editor.editor'); if ($mercuryEditorRoute !== NULL) { $mercuryEditorRoute->setOption('_hide_admin_toolbar', FALSE); } } }
It works quite well for the new admin navigation β (combined with changes from https://www.drupal.org/project/mercury_editor/issues/3449328 β¨ Hide new drupal admin navigation on mercury editor routes Needs review ), not sure how it will look with other admin toolbars but it should make them show up.