Fix bug with link content selector

replacing e.target by e.currentTarget to avoid problem when link is not empty