Replaces url option by a callback