I have this variable
{% set slug_profilo_segnalato = '{slug_profilo_segnalato}' %}
(i assign {slug_profilo_segnalato} via sugar.js with assign. (http://sugarjs.com/api/String/assign) if i do {{slug_profilo_segnalato}}, i see correct (p.e william)
<a href='{{ path('profilo', {'slug': slug_profilo_segnalato }) }}'
when I look at the link I generated this result
.../profilo/%7Bslug_profilo_segnalato%7D
To solve this problem I did the following:
<a href='{{ path('profilo', {'slug': slug_profilo_segnalato })|replace({'%7B':'{', '%7D':'}'}) }}'>PROFILO</a>
The results on Twig:
../profilo/william
I do not think that is the best solution. i try also |raw, spaceless.. Why is encoded in this way?
Have you tried combining
autoescapeblock andrawfilter?Hope this helps...