public function redirect($url = '', $message = '', $severity = 'info', $exclude_lang = false)
    {
        $this->setMessage($message, $severity, true);

        $parsed = parse_url($url);

        $query = array();
        if (isset($parsed['query'])) {
            parse_str($parsed['query'], $query);
        }

        $full = strpos($url, $this->base) === 0;
        $this->url->redirect($url, (array) $query, $full, $exclude_lang);
    }
public function redirect($url = '', $message = '', $severity = 'info', $exclude_lang = false)
    {
        $this->setMessage($message, $severity, true);

        $parsed = parse_url($url);

        $query = array();
        if (isset($parsed['query'])) {
            parse_str($parsed['query'], $query);
        }

        $full = strpos($url, $this->base) === 0;
        $this->url->redirect($url, (array) $query, $full, $exclude_lang);
    }
public function redirect ( $ url = '' , $ message = '' , $ severity = 'info' , $ exclude_lang = false ) { $ this -> setMessage ( $ message , $ severity , true ) ; $ parsed = parse_url ( $ url ) ; $ query = array ( ) ; if ( isset ( $ parsed [ 'query' ] ) ) { parse_str ( $ parsed [ 'query' ] , $ query ) ; } $ full = strpos ( $ url , $ this -> base ) === 0 ; $ this -> url -> redirect ( $ url , ( array ) $ query , $ full , $ exclude_lang ) ; }
Redirects to a new location
@param string $url
@param string $message
@param string $severity
@param boolean $exclude_lang
Redirects to a new location