change host with host_with_port
This commit is contained in:
1 parent
275c6f4c8a
commit
295aef32ab
1 file changed
+2
-2
+2
-2
@@ -59,8 +59,8 @@ class Panel::Gprs::BackEnd::LocationsController < OrbitBackendController
|
||||
@data = Array.new
|
||||
|
||||
locations.each do |location|
|
||||
picurl = "http://"+request.host + location.file.url
|
||||
thumburl = "http://"+request.host + location.file.thumb.url
|
||||
picurl = "http://#{request.host_with_port + location.file.url}",
|
||||
thumburl = "http://#{request.host_with_port + location.file.thumb.url}"
|
||||
@data << { name: location.name,
|
||||
pic_url: picurl,
|
||||
thumb_url: thumburl,
|
||||
|
||||
Reference in new issue
Block a user