original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Redirects to a new location
  @param string $url
  @param string $message
  @param string $severity
  @param boolean $exclude_lang
docstring_tokens: Redirects to a new location