I have a controller that I call with Ajax.
Inside this controller I have a condition, like

```
if($a == 10){
    return $this->redirectToRoute('form_finish');
}

```

But when the condition is satisfited, I don't have the redirect