Core/Framework/Amvc/Controller/Controller.php
protected function redirectExit($location = '', $permanent = false)
    {
        // No view rendering!
        $this->render = false;

        if (empty($location)) {
            $location = BASEURL;
        }

        if (preg_match('~^(ftp|http)[s]?://~', $location) == 0 && substr($location, 0, 6) != 'about:') {
            $location = BASEURL . $location;
        }

        $_SESSION['Core']['redirect'] = [
            'location' => $location,
            'permanent' => $permanent
        ];
    }
protected function redirectExit($location = '', $permanent = false)
    {
        // No view rendering!
        $this->render = false;

        if (empty($location)) {
            $location = BASEURL;
        }

        if (preg_match('~^(ftp|http)[s]?://~', $location) == 0 && substr($location, 0, 6) != 'about:') {
            $location = BASEURL . $location;
        }

        $_SESSION['Core']['redirect'] = [
            'location' => $location,
            'permanent' => $permanent
        ];
    }
protected function redirectExit ( $ location = '' , $ permanent = false ) { // No view rendering! $ this -> render = false ; if ( empty ( $ location ) ) { $ location = BASEURL ; } if ( preg_match ( '~^(ftp|http)[s]?://~' , $ location ) == 0 && substr ( $ location , 0 , 6 ) != 'about:' ) { $ location = BASEURL . $ location ; } $ _SESSION [ 'Core' ] [ 'redirect' ] = [ 'location' => $ location , 'permanent' => $ permanent ] ; }
Redirect function to make sure the browser doesn't come back and repost the form data

@param string $location
Location we redirtect to
@param bool $permanent
Is this a permanent redirection?
Redirect function to make sure the browser doesn t come back and repost the form data