How can I do what is proposed in this question, but passing a parameter to the controller from the ajax, and then, from the controller, returning to the same view where the ajax is executed that parameter through twig?
This may sound redundant but I do it to get in the view a twig variable whose value is unknown and I get it through a javascript variable in the same view. The same, if they know another way of doing it without having to do all the above, they tell me. Thanks.