Added // protocol to local url function