modify ajax url to relative