summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/_image.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/blob/_image.html.haml')
-rw-r--r--app/views/projects/blob/_image.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_image.html.haml b/app/views/projects/blob/_image.html.haml
index 3c11b97921f..18caddabd39 100644
--- a/app/views/projects/blob/_image.html.haml
+++ b/app/views/projects/blob/_image.html.haml
@@ -6,4 +6,4 @@
- blob = sanitize_svg(blob)
%img{src: "data:#{blob.mime_type};base64,#{Base64.encode64(blob.data)}"}
- else
- %img{src: namespace_project_raw_path(@project.namespace, @project, @id)}
+ %img{src: namespace_project_raw_path(@project.namespace, @project, tree_join(@commit.id, blob.path))}