public static function getPageRoutePath($path)
{
$pathArray = explode(PageInterface::PATH_SEPARATOR, $path);
foreach ($pathArray as $key => $path) {
$pathArray[$key] = preg_replace('/-(\\d)+$/', '', $path);
}
$path = implode(PageInterface::PATH_SEPARATOR, $pathArray);
//add first slash
if (substr($path, 0, 1) != PageInterface::PATH_SEPARATOR) {
$path = PageInterface::PATH_SEPARATOR . $path;
}
return $path;
}