With the introduction of the component component in Symfony 2.7, how can I output the relative URL of an asset without a version number?
I am using the following code that no longer works:
<img src="{{ asset('images/user.png') | imagine_filter('default') }}" alt="Image de profil" class="img-circle whitebg">
The object function displays the URL with the version number, and this is not correctly described in the imag_filter file:
http://mywebsite.com/media/cache/resolve/default/images/user.png%3Fversion=v1.0
My configuration:
framework: assets: version: 'v1.0' version_format: '%%s?version=%%s' base_path: ~ packages: images: base_path: /images version_format: ''
Ideally, I can do the โImagineโ movie while maintaining this version strategy. Otherwise, deactivating the version for images can be good enough
Thank you for your help!
filter symfony assets liipimaginebundle
Sebastien
source share