Problem/Motivation
I upgraded admin_toolbar from version 1.27.0 to 2.0.0 and noticed that some of the links couldn't be found (when Admin Toolbar Extra Tools is enabled). For example the edit link of my Tags taxonomy wasn't found in the correct place in the menu, it had been moved one step up. I took some screenshots before and after the upgrade:
Before:

After:

An additional cache clear moved the edit link of the taxonomy to the root level of the administration menu found under /admin/structure/menu/manage/admin which also seemed very odd.
This issue can be reproduced on a fresh Drupal 8 site using the 8.x-2.0 version of Admin toolbar. Steps to reproduce (I tested this on simplytest.me):
- Enable Admin Toolbar module
- Enable Admin Toolbar Extra Tools submodule
- Go to Structure -> Taxonomy -> Tags in the admin menu. You would expect to see an edit link here but it's missing.
- Go to admin/structure/menu/manage/admin, you'll see that the edit link for the taxonomy is actually on the root level
- It also appears that the Basic block menu has been moved to the root when it should be under Structure -> Block layout
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screenshot 2019-12-02 at 5.43.57 PM.png | 65.85 KB | abhisekmazumdar |
| #5 | Screenshot 2019-12-02 at 5.42.04 PM.png | 62.57 KB | abhisekmazumdar |
| #3 | Menu_Links_Incorrect_place_in_Admin_Menu-3091510-3.patch | 705 bytes | hardik_patel_12 |
Comments
Comment #2
hardik_patel_12 commentedComment #3
hardik_patel_12 commentedYou can use this patch for proper edit links in admin menu
Comment #4
hardik_patel_12 commentedComment #5
abhisekmazumdarHy @Hardik_Patel_12
I have tested the patch, the links are now in the proper hierarchy.
Before:
After:
Comment #7
adriancidThanks