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

Command icon 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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tim-diels created an issue. See original summary.

paulocs made their first commit to this issue’s fork.

fjgarlin’s picture

Version: 3.x-dev » 8.x-2.x-dev
Related issues: +#3218211: Route "view.media_library.page" does not exist
fjgarlin’s picture

Status: Active » Needs review
FileSize
839 bytes

This 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.

adriancid’s picture

Status: Needs review » Closed (duplicate)

I will close this and use your patch on the other ticket.