def remove_slashes(url)
      return url unless url.present? && url.include?('//')
      parts = url.split('//')
      return parts[0..1].join if parts.length > 2
      url
    end
def remove_slashes(url)
      return url unless url.present? && url.include?('//')
      parts = url.split('//')
      return parts[0..1].join if parts.length > 2
      url
    end
For rare cases w/ urls with mistaken double slash twice.