Issue #266 - Fix buggy initPaginationLinks method