Skip to content

Link on new template are not absolute #199

@lyrixx

Description

@lyrixx

Context

I started a new projet (4.1) and I create a new controller.
And in the template, there is:

    <ul>
        <li>Your controller at <code><a href="{{ 'src/Controller/HomepageController.php'|file_link(0) }}">src/Controller/HomepageController.php</a></code></li>
        <li>Your template at <code><a href="{{ 'templates/homepage/index.html.twig'|file_link(0) }}">templates/homepage/index.html.twig</a></code></li>
    </ul>

But the generated link are: subl://templates/homepage/index.html.twig:0
My php.ini config:

[Xdebug]
xdebug.file_link_format='subl://%f:%l'

The issue

the link is relative

What is expected

The link is absolute:

subl:///home/gregoire/dev/...../templates/homepage/index.html.twig:0

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