Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The module admin toolbar tools provides a link to the media library page and expects the view media_library with display page to be enabled.
When the page is not enabled, you will get the error: Route "view.media_library.page" does not exist.
Steps to reproduce
Disable the page display from the media_library view.
Proposed resolution
I suggest we first check if the view exists and is enabled before adding the link.
Remaining tasks
- Create patch
- Review path
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#4 | 3218206-4-route_does_not_exists.patch | 839 bytes | fjgarlin |
|
Issue fork admin_toolbar-3218206
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
fjgarlin CreditAttribution: fjgarlin commentedComment #4
fjgarlin CreditAttribution: fjgarlin commentedThis is the same issue that was found in version 3.x (https://www.drupal.org/project/admin_toolbar/issues/3218211) and the same fix too.
Attaching a patch for it.
Comment #5
adriancidI will close this and use your patch on the other ticket.