I'm upgrading my code from symfony2.6 to symfony2.7 and run into a weird thing with my assets.
example codes are a bit shortened.
I'm using this to set my css files in a head.html.twig.
{% stylesheets '@MyAwesomeBundle/Resources/subfolder*.less' %}
<link rel="stylesheet" href="{{ asset_url }}"/>
{% endstylesheets %}
This in my config file:
# Assetic Configuration
assetic:
debug: %kernel.debug%
bundles:
- MyAwesomeBundle
node: %path.nodejs%
node_paths: [ %path.node_modules% ]
filters:
less:
apply_to: "\.less$"
The less files are compiled fine. The problem is the resulting url in the webpage, which looks like this:
<link rel="stylesheet" href="\2F css\2F 36f682f\5F bootstrap\5F 1\2E css"/>
When I add a |raw filter to the twig-file the path is just fine.
{# twig #}
<link rel="stylesheet" href="{{ asset_url|raw }}"/>
{# resulting html #}
<link rel="stylesheet" href="/css/36f682f_bootstrap_1.css"/>
Any idea how to remedy this? I hate to go through all my twig files and add the raw-filter.
I've looked at all dependencies I'm pulling in with composer, they appear to be at the latest stable versions (no dev-versions being used).