Fix compare screen pagination to preserve parameters from filtering