Edit links to minimize redirects