{"action":"opened","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3011","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3011/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3011/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/3011/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/issues/3011","id":82483654,"number":3011,"title":"Cannot use multiple route parameters in the sonata_type_model_autocomplete form type","user":{"login":"fancyweb","id":3658119,"avatar_url":"https://avatars.githubusercontent.com/u/3658119?v=3","gravatar_id":"","url":"https://api.github.com/users/fancyweb","html_url":"https://github.com/fancyweb","followers_url":"https://api.github.com/users/fancyweb/followers","following_url":"https://api.github.com/users/fancyweb/following{/other_user}","gists_url":"https://api.github.com/users/fancyweb/gists{/gist_id}","starred_url":"https://api.github.com/users/fancyweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancyweb/subscriptions","organizations_url":"https://api.github.com/users/fancyweb/orgs","repos_url":"https://api.github.com/users/fancyweb/repos","events_url":"https://api.github.com/users/fancyweb/events{/privacy}","received_events_url":"https://api.github.com/users/fancyweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-29T15:57:18Z","updated_at":"2015-05-29T15:57:18Z","closed_at":null,"body":"I'm using the `sonata_type_model_autocomplete` form type (https://sonata-project.org/bundles/admin/master/doc/reference/form_types.html) and I use the `route`option. So I provide my custom route and the parameters of this route in the `route` option.\r\n\r\nThe problem is that the javascript widget does not escape the url (master : https://github.com/sonata-project/SonataAdminBundle/blob/master/Resources/views/Form/Type/sonata_type_model_autocomplete.html.twig#L45, 2.3 : https://github.com/sonata-project/SonataAdminBundle/blob/2.3/Resources/views/Form/form_admin_fields.html.twig#L284).\r\n\r\nSo if my route has several parameters (and it's the case), the url contains `&amp;` instead of `&` to separate the query parameters. If the url is filtered by the js escape filter (`|escape('js')`) or the raw filter (`|raw`), then it's working as expected. The fix seems easy."}}