I want different parameter names for different routes. So instead of using a fix name for the paramter like here
<a href="{{ path('page_edit', { 'param': item.value }) }}">Submit</a>
I want to do somethinig like this
<a href="{{ path('page_edit', { '{{ item.param }}': item.value }) }}">Submit</a>
But what I get as result looks like this
http://localhost/mysite/web/app_dev.php/user/edit?%7B%7B+item.param+%7D%7D=1918
How can I generate a result that looks like this?
http://localhost/mysite/web/app_dev.php/user/edit/1918