handle pretty ajax url config