Changing target url when loading api.