Fixing URL target for XHR