set dynamic xhr path