I am using sonata media bundle.
and I was wondering how can I access the media url in twig. I just want the url, I do not need to show the media.
Any sug
You can use: {% path media, 'reference' %}
{% path media, 'reference' %}
@Blauesocke - tried your solution and had exactly the same result for file provider with using both
{% set img_url = media_public_url(media, 'reference') %} {{ dump(img_url) }}
and
{% path sonata_admin.value, 'reference' %}