summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/viewers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-12-11 17:23:29 +0100
committerDouwe Maan <douwe@selenight.nl>2017-12-12 09:48:06 +0100
commite8d0d6ba9eeedf3d895ceb5e679866d4889cbf36 (patch)
tree6db6475389fba0c53fe4500df63ab1466e967ed1 /app/views/projects/blob/viewers
parentfb47f2a7459f4c413f3fe496bcdb1b40d81d73a4 (diff)
downloadgitlab-ce-e8d0d6ba9eeedf3d895ceb5e679866d4889cbf36.tar.gz
Use app host instead of asset host when rendering image blob or diffdm-image-blob-diff-full-url
Diffstat (limited to 'app/views/projects/blob/viewers')
-rw-r--r--app/views/projects/blob/viewers/_image.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/blob/viewers/_image.html.haml b/app/views/projects/blob/viewers/_image.html.haml
index 26ea028c5d7..2a8cefac005 100644
--- a/app/views/projects/blob/viewers/_image.html.haml
+++ b/app/views/projects/blob/viewers/_image.html.haml
@@ -1,2 +1,3 @@
.file-content.image_file
- = image_tag(blob_raw_path, alt: viewer.blob.name)
+ -# Uses the full URL rather than the path, to prevent it from getting prefixed with the asset host.
+ = image_tag(blob_raw_url, alt: viewer.blob.name)