diff --git a/app/utils/mention.ts b/app/utils/mention.ts index 53e82705af..8e6c4e2b1f 100644 --- a/app/utils/mention.ts +++ b/app/utils/mention.ts @@ -102,8 +102,8 @@ export const determineMentionType = ({ return MentionType.PullRequest; } if ( - /\/-\/issues\/\d+/.test(pathname) || - (/\/-\/issues\/?$/.test(pathname) && hasShowParam) + /\/-\/(issues|work_items)\/\d+/.test(pathname) || + (/\/-\/(issues|work_items)\/?$/.test(pathname) && hasShowParam) ) { return MentionType.Issue; }