src/Controller.php
protected function getRedirect() : Redirect
    {
        $context = Context::getInstance();
        $redirect = new Redirect($context->getUrl($context->getParameter('controller_path')));
        return $redirect;
    }
protected function getRedirect() : Redirect
    {
        $context = Context::getInstance();
        $redirect = new Redirect($context->getUrl($context->getParameter('controller_path')));
        return $redirect;
    }
protected function getRedirect ( ) : Redirect { $ context = Context :: getInstance ( ) ; $ redirect = new Redirect ( $ context -> getUrl ( $ context -> getParameter ( 'controller_path' ) ) ) ; return $ redirect ; }
Get an instance of the Redirect object that is setup with this controller as its base URL.

@return Redirect
Get an instance of the Redirect object that is setup with this controller as its base URL .