Skip to content
Snippets Groups Projects
Commit 08a6c20d authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #1176 [skip ci]

parent 62ceb369
No related branches found
No related tags found
No related merge requests found
......@@ -7,7 +7,7 @@ class Admin::Communication::Websites::PreviewController < Admin::Communication::
def assets
path = request.path.partition('/assets').last
url = "#{@website.url}/assets#{path}"
data = URI.open(url).read
data = URI(url).open.read
render body: data,
content_type: request.format.to_s
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment