public function joinSlugs(array $urlParts)
    {
        $urlParts = array_map(function($urlPart){
            return trim($urlPart, '/');
        }, $urlParts);

        return implode('/', $urlParts);
    }