public static function redirect($url, $parameters = array(), $allowed_redirect_hosts = null)
{
assert('is_string($url)');
assert('strlen($url) > 0');
assert('is_array($parameters)');
if ($allowed_redirect_hosts !== null) {
$url = self::checkURLAllowed($url, $allowed_redirect_hosts);
} else {
$url = self::normalizeURL($url);
}
self::_doRedirect($url, $parameters);
}