Fix AJAX printing request URL