Shorten links when possible.