Skip to content

[Feature Request] Absolute asset URL #5322

@marcospassos

Description

@marcospassos

Hey guys!

Currently, there's no standard way of retrieving the absolute URL to an asset. This would be useful when generating asset paths in a template for an email. Would be cool a function like:

{{ asset_url('images/foo.jpg') }}

The current solution is not pratical and breaks when using CDN.

Thanks,
Marcos

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good first issueIdeal for your first contribution! (some Symfony experience may be required)Templating

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions