diff --git a/awx/ui/client/src/activity-stream/factories/build-anchor.factory.js b/awx/ui/client/src/activity-stream/factories/build-anchor.factory.js index ae03ae7e11..97da2ba5e3 100644 --- a/awx/ui/client/src/activity-stream/factories/build-anchor.factory.js +++ b/awx/ui/client/src/activity-stream/factories/build-anchor.factory.js @@ -65,10 +65,20 @@ export default function BuildAnchor($log, $filter) { case 'workflow_job': url += `workflows/${obj.id}`; break; + case 'label': + url = null; + break; default: url += resource + 's/' + obj.id + '/'; } - return ' ' + $filter('sanitize')(obj.name || obj.username) + ' '; + + const name = $filter('sanitize')(obj.name || obj.username); + + if (url) { + return ` ${name} `; + } + + return ` ${name} `; } catch(err){ $log.debug(err);