Skip to content

$request->getPreferredFormat() is null #2101

Open
@Guervyl

Description

@Guervyl

Hi, In my controller $request->getPreferredFormat() is null whenever the page is called from ux-turbo or not.

I'm using symfony/ux-turbo: 2.12.0 with Symfony 6.2.14.

I'm using turbo stream instead of frame. When I set the a tag outside a turbo-frame $request->headers->get('Turbo-Frame') and $request->getPreferredFormat() are null.

When I add the link inside a turbo-frame I get the $request->headers->get('Turbo-Frame') but $request->getPreferredFormat() is set to Html.

The links are inside <div {{ stimulus_controller('@symfony/ux-turbo/turbo-core') }}>...</div>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions