adds extension to a link.