Skip to content

With the view "files" disabled, localgov_core cause an exception #282

@marcopagliarulo

Description

@marcopagliarulo

Because of https://github.com/localgovdrupal/localgov_core/blob/2.x/localgov_core.links.task.yml, if the files view is disabled, accessing the admin/content/media generates a fatal error due to the route defined in localgov_core.links.task.yml but not available.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "view.files.page_1" does not exist.

Even if the view likely exists in most of the cases, this is not granted, I think the local task should be defined dynamically and not statically https://www.drupal.org/docs/drupal-apis/menu-api/providing-module-defined-local-tasks#dynamic-local-task-generation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions