#488 Bugfix in constructing search pagination links