Fixed link function. Removed hardcoded type and now looking up the abbreviation based on artifact type.