The described behavior is expected. If the text of the link text is changed according to new file selected would cause any custom edits to be lost.