From view() of a single page controller I can redirect like following:
use \Concrete\Core\Http\ResponseFactory;
return ResponseFactory::redirect($this->getRequest()->getPathInfo());
From the view() method of a block controller the redirection with the above snippet does not work.
I also tried to return the value of the AbstractController::buildRedirect() with no success.
Therefor my question is: What kind of support from c5 does exist to redierct from view() of a block controller?
view()of a block controller is:ResponseFactory::redirect($this->getRequest()->getPathInfo())->send();. But then a new question arises: why do page and block controllers handle it different? Shouldn't it be handled the same? - 1stthomas