update relinked_text function and relink filter