Fix links in templates