set_url_scheme on ajax call