Fixed trim on fragments in getLink()