From 8a92a39dcba66c5798b1642faa91a80875363575 Mon Sep 17 00:00:00 2001 From: Nate Wright Date: Mon, 11 Nov 2024 12:05:34 +0000 Subject: [PATCH] pkp/pkp-lib#10596 Fix: issue archives show pages that don't exist --- pages/issue/IssueHandler.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/issue/IssueHandler.php b/pages/issue/IssueHandler.php index c24602f6c0a..95e58fbd7da 100644 --- a/pages/issue/IssueHandler.php +++ b/pages/issue/IssueHandler.php @@ -172,6 +172,10 @@ public function archive($args, $request) $nextPage = $total > $showingEnd ? $page + 1 : null; $prevPage = $showingStart > 1 ? $page - 1 : null; + if (!count($issues) && $offset) { + $this->getDispatcher()->handle404(); + } + $templateMgr->assign([ 'issues' => $issues, 'showingStart' => $showingStart,