class UrlDomainFormatter
  def self.format(domain)
    if !URI.parse(domain).host
      domain.prepend("http://")
    end
    # remove file path
    domain = URI.join(domain, "/").to_s
    
    domain
  end
end

class UrlDomainFormatter
  def self.format(domain)
    if !URI.parse(domain).host
      domain.prepend("http://")
    end
    
    domain
  end
end

Remove urldomainformatter code that removed file path.
Remove urldomainformatter code that removed file path.
