Redirect users to an external URL Is it possible to redirect users from a controller? 

I tried using the following code, but it doesn't work.

public function hello() {
  $query = $db-&gt;select('coop.oad','x');
  $query-&gt;fields('x', ['oad_url']);
  $query-&gt;condition('x.oad_soc', $column_name,'=');
  $result = $query-&gt;execute()-&gt;fetchField();

  return new TrustedRedirectResponse($result);
}
This should do it:

$redirect = new TrustedRedirectResponse($url);
return $redirect-&gt;send();