Fixed broken pagination links when search is executed