add existing query string to pagination links