in infinite mode, pagedCollection.url can be a function