I am trying to combine two urls into a single url.
let url = "http://example.com/public/";
and I have file in path "/samples/leads/Import_Leads_Sample.csv"
which is coming from API. I am taking this in one subscript as filepath
now filepath holds the
filepath: "/samples/leads/Import_Leads_Sample.csv"
I want both this to be combined and form one URL as.
let url = "http://example.com/public/samples/leads/Import_Leads_Sample.csv"