Drupal 8?.
$response = new Symfony\Component\HttpFoundation\RedirectResponse($url); $response->send(); // don't send the response yourself inside controller and form. return;