You need to add a condition for adding the linkUrl, then deleting the linkUrl (`linkUrl = ''`)