if ($pathInfo === '/' ||
str_starts_with($pathInfo, '/widgets/'
)) { return $pathInfo;
} $pathInfo =
ltrim($pathInfo, '/'
);
$route =
$this->
getRoute($shopId,
$pathInfo);
if (!\
is_array($route)) { return $pathInfo;
} $query =
$this->
getQueryFormOrgPath($route['orgPath'
]);
if (empty($route['main'
]) ||
(int) $route['shopId'
] !==
$shopId) { $query['rewriteAlias'
] = true;
} else { $query['rewriteUrl'
] = true;
} return $query;
} /**
* @return array<string, mixed>|false
*/