update url first if method is GET