summaryrefslogtreecommitdiff
path: root/lib/gitlab/badge/build/metadata.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/badge/build/metadata.rb')
-rw-r--r--lib/gitlab/badge/build/metadata.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/badge/build/metadata.rb b/lib/gitlab/badge/build/metadata.rb
index f87a7b7942e..2ee35a0d4c1 100644
--- a/lib/gitlab/badge/build/metadata.rb
+++ b/lib/gitlab/badge/build/metadata.rb
@@ -15,12 +15,11 @@ module Gitlab
end
def image_url
- build_namespace_project_badges_url(@project.namespace,
- @project, @ref, format: :svg)
+ build_project_badges_url(@project, @ref, format: :svg)
end
def link_url
- namespace_project_commits_url(@project.namespace, @project, id: @ref)
+ project_commits_url(@project, id: @ref)
end
end
end