fixes the url options of the ajax