fix url method when no argument is passed