Fix relative pathing problem in ajax url request