some logics for not sending the url