in app/classes/ReleaseInsights/Request.php [104:115]
public function cleanPath(string $path): string
{
if ($path == '/' || $path == '//') {
return '/';
}
$path = explode('/', $path);
$path = array_filter($path); // Remove empty items
$path = array_values($path); // Reorder keys
return '/' . implode('/', $path) . '/';
}