handle pretty ajax url