Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mixed content alert in HTTPS #137

Closed
hobgoblinsmaster opened this issue Aug 14, 2013 · 1 comment
Closed

Mixed content alert in HTTPS #137

hobgoblinsmaster opened this issue Aug 14, 2013 · 1 comment
Milestone

Comments

@hobgoblinsmaster
Copy link

When using HTTPS, I had a "mixed content" alert, this is due to the link to font.googleapis.com in _head.twig using encryption agnostic scheme avoid the issue as googleapis is accessible in HTTPS.

Here is my patch:

--- /tmp/_head.twig     2013-08-14 10:43:11.763780199 +0200
+++ tpl/_head.twig      2013-08-14 10:43:22.671946320 +0200
@@ -6,6 +6,6 @@
         <link rel="stylesheet" href="./tpl/css/style.css" media="all">
         <link rel="stylesheet" href="./tpl/css/style-{{ constant('THEME') }}.css" media="all" title="{{ constant('THEME') }} theme">
         <link rel="stylesheet" href="./tpl/css/messages.css" media="all">
-        <link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
+        <link href='//fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
         <script src="./tpl/js/jquery-2.0.3.min.js"></script>
         <script type="text/javascript">$(document).ready(function(){$("body").prepend('<a href="#top" class="top_link" title="{% trans "back to top" %}"><img src="./tpl/img/{{ constant("THEME") }}/backtotop.png" alt={% trans "back to top" %}"/></a>');$(".top_link").css({position:"fixed",right:"15px",bottom:"15px",display:"none",padding:"20px",background:"#ccc","-moz-border-radius":"40px","-webkit-border-radius":"40px","border-radius":"40px",opacity:"0.9","z-index":"2000"});$(window).scroll(function(){posScroll=$(document).scrollTop();if(posScroll>=400)$(".top_link").fadeIn(600);else $(".top_link").fadeOut(600)})})</script>
@nicosomb
Copy link
Member

Hi @hobgoblinsmaster, Thank you for your patch. I will use it very soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants