diff --git a/Classes/Controller/JoblistController.php b/Classes/Controller/JoblistController.php index 0921a150ab1200ee91b6b2cf74c7f47025362e53..483c525bd5129a8147d4470c0ee00737fcd8279f 100644 --- a/Classes/Controller/JoblistController.php +++ b/Classes/Controller/JoblistController.php @@ -304,7 +304,7 @@ class JoblistController extends ActionController { // get all jobs for the current page $allJobsCount = $this->jobRepository->findJobsByFilter($filters)->count(); $numberOfPages = (int) ($jobLimit <= 0 ? 0 : \ceil($allJobsCount / $jobLimit)); - if ($numberOfPages !== 0 && $currentPageBrowserPage > $numberOfPages) { + if ($numberOfPages !== 0 && $currentPageBrowserPage >= $numberOfPages) { /** @var PageRenderer $pageRenderer */ $pageRenderer = GeneralUtility::makeInstance(PageRenderer::class); // the PageRenderer contains the content of the current request, the result of the following sub-request will diff --git a/Configuration/Routes/config.yaml b/Configuration/Routes/config.yaml index ba92b73cd9dbe8101b2dbcb584ae6113f81eaac9..07d771be531918bef4a3c0f6e4386f9c5bfae390 100644 --- a/Configuration/Routes/config.yaml +++ b/Configuration/Routes/config.yaml @@ -12,7 +12,7 @@ routeEnhancers: value: seite-jobs currentPage: type: StaticRangeMapper - start: '0' + start: '1' end: '100' defaults: currentPage: '0'