Fix: Normalized bundle path when bundle has no section
This commit is contained in:
parent
b3fc3d1890
commit
5af0fb5ef9
|
@ -175,7 +175,7 @@ private function normalizeBundlePath(string $path): string
|
||||||
$parts = preg_split('#/#', $path, -1, PREG_SPLIT_NO_EMPTY);
|
$parts = preg_split('#/#', $path, -1, PREG_SPLIT_NO_EMPTY);
|
||||||
$count = count($parts);
|
$count = count($parts);
|
||||||
|
|
||||||
if ($count > 2 && $parts[$count - 2] === 'page') {
|
if ($count >= 2 && $parts[$count - 2] === 'page') {
|
||||||
// Requested URL is pagination
|
// Requested URL is pagination
|
||||||
$page = array_pop($parts);
|
$page = array_pop($parts);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user