Preserve search_query when generating pagination links