Set the correct type for the output links.