change url resolve logic