src/CarteBlanche/App/Router.php
public function redirect($pathinfo = '', $hash = null, $force_not_referer = false)
    {
        if (empty($pathinfo)) {
            $referer_uri = self::getReferer();
            if (!empty($referer_uri) && $force_not_referer!==true) {
                $pathinfo = $referer_uri;
            } else {
                $pathinfo = CarteBlanche::getPath('root_file');
            }
        } elseif (is_array($pathinfo)) {
            $pathinfo = $this->buildUrl($pathinfo, null, '&');
        }
        parent::redirect($pathinfo, $hash);
    }
public function redirect($pathinfo = '', $hash = null, $force_not_referer = false)
    {
        if (empty($pathinfo)) {
            $referer_uri = self::getReferer();
            if (!empty($referer_uri) && $force_not_referer!==true) {
                $pathinfo = $referer_uri;
            } else {
                $pathinfo = CarteBlanche::getPath('root_file');
            }
        } elseif (is_array($pathinfo)) {
            $pathinfo = $this->buildUrl($pathinfo, null, '&');
        }
        parent::redirect($pathinfo, $hash);
    }
Make a redirection to a new route (HTTP redirect)

@param   mixed   $pathinfo           The path information to redirect to
@param   string  $hash               A hash tag to add to the generated URL
@param   bool    $force_not_referer  By default, this function will redirect to the referer, otherwise this is TRUE