diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml
index 610128d..1854fe2 100644
--- a/app/views/layouts/public.html.haml
+++ b/app/views/layouts/public.html.haml
@@ -21,7 +21,7 @@
- =javascript_include_tag "http://maps.google.com/maps/api/js?sensor=false®ion=FR"
+ =javascript_include_tag "https://maps.google.com/maps/api/js?sensor=false®ion=FR"
diff --git a/app/views/portlets/render_public/_imagecontent.html.haml b/app/views/portlets/render_public/_imagecontent.html.haml
index ab22df4..3def24f 100644
--- a/app/views/portlets/render_public/_imagecontent.html.haml
+++ b/app/views/portlets/render_public/_imagecontent.html.haml
@@ -23,7 +23,7 @@
-else
-url =""
--url = "http://"+HOSTNAME+url
+-url = request.protocol+HOSTNAME+url
-style = ""
-style = "text-align:center;" if input.alignement == "center"
@@ -60,7 +60,7 @@
-elsif input.expandable
- =link_to image_tag(url, :alt => input.alt.to_s, :style => styleimg ), "http://"+HOSTNAME+(input.image_file ? input.image_file.file.large.url : ""), :title => input.alt.to_s, :class => "expandable_image"
+ =link_to image_tag(url, :alt => input.alt.to_s, :style => styleimg ), request.protocol+HOSTNAME+(input.image_file ? input.image_file.file.large.url : ""), :title => input.alt.to_s, :class => "expandable_image"
-else
=image_tag(url, :alt => input.alt.to_s, :style => styleimg )