fix pagination links generation
fix pagination links generation

The last type would always be considered the one with the most results (pages).

swiftype/swiftype-search-jquery,swiftype/swiftype-search-jquery