Fixed broken pagination with SEO optimized URLs