[#40715549] only add the clear link if needed