code: public function redirect(string $url) : object
      {
          return parent::redirect($this->di->get("url")->create($url));
      }
docs: Redirect to another page and creating an url from the argument.
  
  @param string $url to redirect to
  
  @return self