1
0

Fix: Normalized bundle path when bundle has no section

This commit is contained in:
Richard Dern 2024-04-22 21:46:36 +02:00
parent b3fc3d1890
commit 5af0fb5ef9

View File

@ -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);