symfony - symfony2 assetic path suddenly escaped in symfony2.7 -


i'm upgrading code symfony2.6 symfony2.7 , run weird thing assets.

example codes bit shortened.

i'm using set css files in head.html.twig.

{% stylesheets '@myawesomebundle/resources/subfolder*.less' %} <link rel="stylesheet" href="{{ asset_url }}"/> {% endstylesheets %} 

this in 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 compiled fine. problem resulting url in webpage, looks this:

<link rel="stylesheet" href="\2f css\2f 36f682f\5f bootstrap\5f 1\2e css"/> 

when add |raw filter twig-file path fine.

{# twig #} <link rel="stylesheet" href="{{ asset_url|raw }}"/>  {# resulting html #} <link rel="stylesheet" href="/css/36f682f_bootstrap_1.css"/> 

any idea how remedy this? hate go through twig files , add raw-filter.

i've looked @ dependencies i'm pulling in composer, appear @ latest stable versions (no dev-versions being used).

symfony2.7 parse files differently, depending on file extension (or name).

variable "asset_url" secured (and no escaped) in .html.twig files. in other case (for examle: head.js.twig, head_js.twig etc. ), escaped and, accordingly, require "| raw" filter.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -