Skip to content

BatchActionController isn't passing default route attributes #1022

Open
@quisse

Description

@quisse

Let's say we register the ux_live_component routes as following:

live_component:
    resource: '@LiveComponentBundle/config/routes.php'
    prefix: '/_components'
    defaults:
       _routeScope: ['storefront']
       _loginRequired: true 

When the \Symfony\UX\LiveComponent\Controller\BatchActionController::__invoke is invoking sub requests, it sets the only certain attributes. So that for example the _loginRequired and _routeScope defaults are skipped. I want to create a PR to address this issue but not sure where to look. As the defaults are added to the routes at compile time and the batchAction is invoking the requests directly so that the route matching (and default attributes logic) is skipped.

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