
Hello,
the most recent version change (3.1.1) implemented the loss of the Logout button in the Extra Tools. I see the reason why it was hidden but unfortunately, the proposed option to either show or hide it was not implemented (see https://www.drupal.org/project/admin_toolbar/issues/3276284 and the related commit).
I personally prefer to have a Logout button in the "Extra Tools" Menu as the way over the "user" ribbon leads to the effect that after the next login, the user ribbon is the active menu as well. I know it's just one click to change to the normal config tab but this Logout button is for me the key feature of the Extra Tools module.
For the time being, I re-added the link manually, but would it be possible to re-add the Logout button - with the option to disable (or enable) it optionally?
Unfortunately, my skills in modules are too limited to propose a solution but hope for a someone generous...
Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | snapshot 2022-10-27 à 16.02.50.png | 181.66 KB | romainj |
| #7 | 3313309-7-2.png | 64.6 KB | ressa |
| #7 | 3313309-7-1.png | 89.7 KB | ressa |
| logout-button.png | 173.22 KB | kaelteschutzgebiet |
Comments
Comment #2
adriancidComment #3
kaelteschutzgebiet commentedDone in release 3.2.0
Comment #4
redseujacUnfortunately I cannot find the option to enable/disable the Logout button/link in version 3.2.1 in Configuration settings. Maybe it's still missing?
Comment #5
romainj commented@redseujac You can find the config form on /admin/config/user-interface/admin-toolbar-search-settings.Comment #6
redseujac@romainj
In the /admin/config/user-interface/admin-toolbar-search-settings I don't see a possibility to enable/disable the missing Logout button/link in the Extra menu.
Am I missing something?
Comment #7
ressaIt appears to have been resurrected in version 3.2.1, where I see the Logout link. I do not see any options of disabling or enabling Logout under /admin/config/user-interface/admin-toolbar-tools
Version 3.2.1
No Logout options
Comment #8
romainj commentedComment #9
ressaThis issue is about "loss of the Logout button in the Extra Tools" in the upper left corner, as can be read in the Issue summary.
Or am I missing something here?
Comment #10
redseujac@ressa: you are absolutely right: it's all about the Logout button/link and not about the Search as @romainj is commenting about.
Comment #11
ressaThanks for confirming @redseujac :-)
As I posted, I can see the "Logout" link in 3.2.1, just by enabling all modules with
drush in admin_toolbar admin_toolbar_search admin_toolbar_tools.But you can't see it?
Comment #12
redseujac@ressa: no, for me the link was missing after installing 3.2.1. I had to manually enable it by applying this patch:
https://www.drupal.org/files/issues/admin_toolbar-bring-back-logout.patch
Comment #13
ressaThanks for the feedback, that's odd ... I am adding issue #2855720: No logout link in admin toolbar anymore, in case that helps anyone figure this out. It looks like the Logout link was removed both in 2017 and 2022, only to be restored and shown by default again ...
Comment #14
redseujac@ressa #7 and #11
That's strange.
I have inspected the code in version 3.2.1
admin_toolbar_tools.links.menu.ymland I couldn't find any code referring to the Logout link/button as it does in the patch I mentioned in #12.Comment #15
ressaI see this in admin_toolbar_tools/src/Plugin/Derivative/ExtraLinks.php. My best guess is that that's where it's coming from:
https://git.drupalcode.org/project/admin_toolbar/-/blob/3.2.1/admin_tool...
Comment #16
redseujac@ressa #15
I see... I will try again. Uninstall and delete the module and install and enable it again. Clearing all caches and I'll come back here again.
Comment #17
redseujacWell, I have tried again and unfortunately no Logout link showing in Extra.
I'll have to apply the patch mentioned in #12
Comment #18
ressaAnnoying... since the issue here is solved for most users, by having it available by default (I assume), maybe you could open a new issue, where you share your set up, and other details, in order to get to the bottom of it?
Comment #19
redseujac@ressa #18
Never mind. In admin_toolbar_tools.links.menu.yml I manually added:
That way it works perfectly again :)
So I'll continue working like that ;)
Comment #20
ressaGreat! If anyone else experience the same problem, and end up here after a search, they should of course feel free to open a new issue, and link to it from here.
Comment #22
ivnishReinstall the module doesn't help me :(