just use url if an error event is passed in @sbezboro