https://github.com/TraverseData/Pagination.js/blob/262e12f9dc4a3c546f86eee953d8d9192365286e/index.js#L20 When we have zero found items we are automatically adding "0" to pagination. Result is then something like this: 1 ... 0 Next In this case I think neither 0 nor Next is correct there since there is just one blank page. Parameters: page=1 count=0 perPage=10