Avoiding rewriting links in mentions