diff --git a/src/Resources/views/default/includes/_delete_form.html.twig b/src/Resources/views/default/includes/_delete_form.html.twig index 7228965190..fa346449ef 100644 --- a/src/Resources/views/default/includes/_delete_form.html.twig +++ b/src/Resources/views/default/includes/_delete_form.html.twig @@ -1,6 +1,6 @@ {{ form(delete_form, { - action: delete_form.vars.action ~ (delete_form.vars.action starts with '?' ? '&' : '?') ~ 'referer=' ~ referer, + action: delete_form.vars.action ~ ('?' in delete_form.vars.action ? '&' : '?') ~ 'referer=' ~ referer, method: 'DELETE', attr: { id: 'delete-form', style: 'display: none' } })