From 5af0fb5ef92e0a66a8e361e5d11a5474eca5d17b Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Mon, 22 Apr 2024 21:46:36 +0200 Subject: [PATCH] Fix: Normalized bundle path when bundle has no section --- app/Classes/Bundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Classes/Bundle.php b/app/Classes/Bundle.php index 73373a2..0940134 100644 --- a/app/Classes/Bundle.php +++ b/app/Classes/Bundle.php @@ -175,7 +175,7 @@ private function normalizeBundlePath(string $path): string $parts = preg_split('#/#', $path, -1, PREG_SPLIT_NO_EMPTY); $count = count($parts); - if ($count > 2 && $parts[$count - 2] === 'page') { + if ($count >= 2 && $parts[$count - 2] === 'page') { // Requested URL is pagination $page = array_pop($parts);