ref #324 -- fix for search terms in paginated links