I'm using TYPO3\Fluid\ViewHelpers\PaginateViewHelper
in my index action which listing some items. Each item has actions which are done on the fly, so after action is called and processed it's back to the index action.
public function deleteAction(Item $item) {
$this->itemService->remove($item);
$this->redirect('index');
}
Unfortunately in this case I'm getting redirected to the first page of index. Is there possibility to redirect to the page where I'm triggering delete action? Can I also obtain arguments of subrequest send to PaginateController
?
I know I can use AJAX call instead or write my own pagination, but I'd like to use existing solution if it's possible.
You can do something like this
This only works, if the referring request is sent with the original request, which is the case for Fluid Forms, which you should use for unsafe requests (POST, PUT, DELETE).