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
        ];
    }