Here is a snippet from my config.yml:
framework:
templating:
engines: ['twig']
assets_version: 2
In my twig template, I have the following code:
{% block stylesheets %}
{% stylesheets output='css/compiled/main.css'
'@AppBundle/Resources/public/css/bootstrap.min.css'
'@AppBundle/Resources/public/css/main.css'
%}
<link rel="stylesheet" type="text/css" media="screen" href="{{ asset(asset_url) }}" />
{% endstylesheets %}
{% endblock %}
Everything seems to work fine, but I noticed that the version parameter appears twice in the output:
/css/compiled/main.css?v=2?v=2
I cannot figure out why this is happening. I checked for any overrides of assets_version_format
without success.
The issue only arises in my production environment. The development environment functions correctly with just one query parameter.