def extract_path(url_hash)
      path_parts = url_hash[:url_f].split('//').last.split('/')[1..-1]
      path = "/#{path_parts.join('/')}"
      if path&.length > 2
        url_hash[:url_path] = path
        url_hash[:url_f] = url_hash[:url_f].gsub(url_hash[:url_path], '')
      end
      url_hash
    end
def extract_path(url_hash)
      path_parts = url_hash[:url_f].split('//').last.split('/')[1..-1]
      path = "/#{path_parts.join('/')}"
      if path&.length > 2
        url_hash[:url_path] = path
        url_hash[:url_f] = url_hash[:url_f].gsub(url_hash[:url_path], '')
      end
      url_hash
    end
Supporting Methods Below