Skip to content

Commit

Permalink
[TASK] Get pagebrowser to work in backend again in TYPO3 13
Browse files Browse the repository at this point in the history
  • Loading branch information
einpraegsam committed Nov 8, 2024
1 parent 8843359 commit e0c4efe
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Classes/ViewHelpers/Pagination/UriViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,23 @@ public function render(): string
}

return $uriBuilder->uriFor(
$this->renderingContext->getControllerAction(),
$this->getAction(),
[$argumentPrefix => $arguments],
$this->renderingContext->getControllerName()
$this->getController()
);
}

protected function getAction(): string
{
$controllerAction = $this->renderingContext->getControllerAction();
$parts = explode('/', $controllerAction);
return strtolower($parts[1] ?? '');
}

protected function getController(): string
{
$controllerAction = $this->renderingContext->getControllerAction();
$parts = explode('/', $controllerAction);
return $parts[0] ?? '';
}
}

0 comments on commit e0c4efe

Please sign in to comment.