summaryrefslogtreecommitdiff
path: root/views/neighbors.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2019-08-05 09:48:54 +0000
committergebele <gebele@in-silico.ch>2019-08-05 09:48:54 +0000
commit1546e77e9b2796f20215caa23f06822c96be27ee (patch)
tree491580daa5882e62d327135009246dab4e252940 /views/neighbors.haml
parentb349cb51c4e46e1ae1bb309e9c589f1cff89e5af (diff)
ensure xhr requests are https to avoid mixed content issue in browsers
Diffstat (limited to 'views/neighbors.haml')
-rw-r--r--views/neighbors.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/neighbors.haml b/views/neighbors.haml
index 8f8e186..687f0ab 100644
--- a/views/neighbors.haml
+++ b/views/neighbors.haml
@@ -34,7 +34,7 @@
/ Compound
- c = Compound.find(neighbor)
%td
- %a.btn.btn-link{:href => "#details#{j+1}", data: { toggle: "modal", remote: to("/prediction/#{CGI.escape(c.id.to_s)}/details"), :id=>"link#{j+1}#{count}"}}
+ %a.btn.btn-link{:href => "#details#{j+1}", data: { toggle: "modal", remote: "//#{ENV['VIRTUAL_HOST']}/prediction/#{CGI.escape(c.id.to_s)}/details", :id=>"link#{j+1}#{count}"}}
= embedded_svg(c.svg, :title=>"click for details")
/ Measured Activity