Fix AJAX redirect to be servlet context specific