Split the url correctly