Problem/Motivation
Mercury Editor hides admin toolbar on its edit form/preview. This works well for classic toolbar/admin_toolbar modules, but doeasn't currently support the new Navigation module that will be available in Drupal 10.3 https://www.drupal.org/node/3443691.
When using the Navigation module admin navigation/toolbar is dispalyed two times on Mercury Editor views.

Steps to reproduce
- install Drupal 10.3-beta1 or newer
- enable Navigation module
- install Mercury Editor
- enable Mercury Editor for content type
- open content edit/add form for content type with Mercury Editor enabled
Proposed resolution
Prevent displaying the new admin navigation toolbar on routes with `_hide_admin_toolbar` option set, simillary as it is done for classic admin toolbars.
| Comment | File | Size | Author |
|---|---|---|---|
| mercury-editor-double-navigation.jpg | 259.03 KB | wotnak |
Issue fork mercury_editor-3449328
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
Comment #3
wotnakCreated merge request that adds support for removing the new admin navigation for the routes with the _hide_admin_toolbar option set to true, simillary to how other toolbars are removed.
With this change Mercury Editor page renders corectly without admin navigation toolbars:

Comment #6
justin2pin commented