Change pagination of links in the document page