diff --git a/templates/repo/issue/view_content/context_menu.tmpl b/templates/repo/issue/view_content/context_menu.tmpl
index f5a965b8a9..bbffd53460 100644
--- a/templates/repo/issue/view_content/context_menu.tmpl
+++ b/templates/repo/issue/view_content/context_menu.tmpl
@@ -12,7 +12,9 @@
{{ end }}
{{.ctx.i18n.Tr "repo.issues.context.copy_link"}}
{{.ctx.i18n.Tr "repo.issues.context.quote_reply"}}
- {{.ctx.i18n.Tr "repo.issues.context.reference_issue"}}
+ {{if not .ctx.UnitIssuesGlobalDisabled}}
+ {{.ctx.i18n.Tr "repo.issues.context.reference_issue"}}
+ {{end}}
{{if or .ctx.Permission.IsAdmin .IsCommentPoster .ctx.HasIssuesOrPullsWritePermission}}
{{.ctx.i18n.Tr "repo.issues.context.edit"}}