Problem/Motivation
The experimental Navigation module has some code that hides the current toolbar module when both are enabled.
Because we are going to deprecate toolbar module #3484850: [meta] Tasks to deprecate Toolbar module, we should move this code from navigation to toolbar as part of the process of marking navigation stable. We might be able to improve things by preventing the toolbar from being built in the first place too.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3507711
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 #7
gábor hojtsyThe actual code removing toolbar is in NavigationRenderer. I think doing similar in toolbar module would be simpler as it would just skip doing anything assuming Navigation module is enabled?
The requirements hook is already moved in the MR, but this is still outstanding.
Comment #8
gábor hojtsyComment #9
smustgrave commentedI tested this out pretty basically. With the MR applied I installed navigation and toolbar is hidden. So nothing seemed to break.
Comment #10
godotislateCan we test that the caching works correctly?
Install toolbar and navigation.
Test with user who does not have
access navigation. Then add that permission to the user and test again.Comment #11
smustgrave commentedOkay trying to address #10
I created a test user (test.editor)
Revoked the access navigation permission
Logged in a separate browser and verified I don't see the navigation bar
Will note I also don't see toolbar
I added the permission
Refreshed the other browser with test.editor and see the bar now
So believe this is working.
Comment #15
catchCommitted/pushed to main and cherry-picked to 11.x., thanks!