summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2017-02-17 10:09:15 +0000
committerFelipe Artur <felipefac@gmail.com>2017-02-17 17:49:29 -0200
commit84bffd613c6d0ed504a31fd49e974f03936fe687 (patch)
tree5efca9eb9cc4993804498a14d0e2406835e9851c
parent324fd44efddd300608e9abd76d8906155904ce66 (diff)
downloadgitlab-ce-84bffd613c6d0ed504a31fd49e974f03936fe687.tar.gz
Merge branch 'zj-fix-url-new-issue-presenter' into 'master'
Fix project link on issue creation See merge request !9226
-rw-r--r--lib/gitlab/chat_commands/presenters/issue_new.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/chat_commands/presenters/issue_new.rb b/lib/gitlab/chat_commands/presenters/issue_new.rb
index a1a3add56c9..001abee6eeb 100644
--- a/lib/gitlab/chat_commands/presenters/issue_new.rb
+++ b/lib/gitlab/chat_commands/presenters/issue_new.rb
@@ -10,7 +10,7 @@ module Gitlab
private
- def new_issue
+ def new_issue
{
attachments: [
{
@@ -38,7 +38,7 @@ module Gitlab
end
def project_link
- "[#{project.name_with_namespace}](#{projects_url(project)})"
+ "[#{project.name_with_namespace}](#{project.web_url})"
end
def author_profile_link