Skip to content

[WebProfilerBundle]: hard-coded route path leads to incorrect URL #24868

@mtibben

Description

@mtibben
Q A
Bug report? yes
Symfony version 3.3.10

#19973 added a default IDE file link web view, however the URL it uses is hard-coded in Resources/config/profiler.xml rather than using the route at Resources/config/routing/profiler.xml.

This means that if you use a route prefix e.g.

_profiler:
    resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
    prefix:   /my-prefix/_profiler

the URL produced by debug.file_link_formatter is /_profiler/open instead of /my-prefix/_profiler/open

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