Skip to content

Action::linkToCrudAction() does not work in EA 5 #7488

@jacekkow

Description

@jacekkow

Describe the bug
Creating a custom action pointing to CRUD method does not work at all in EasyAdmin 5. It works fine in version 4 (at least with AdminAction annotation - see #6780)..

To Reproduce

  1. Install https://github.com/EasyCorp/easyadmin-demo
  2. Go to "Comments".
  3. Try to use "Approve", "Reject" or "Mark as spam" custom actions.

Rather than executing action, those are links to /en/admin?entityId=X (main dashboard page).

Additional context
It seems that the routes are not generated for custom actions, even those tagged with AdminAction annotation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions