Correcting code example with getPagedUrl