I send email as https://www.callme.com/iamavailable, now the user clicks the url from Gmail or Outlook or Mac Mail, then it opens in Google Chrome (BUG) fine but without adding https:// (Even though the original url was with https://, Google Chrome BUG)
As a result all the function of the application, stop working even though i have following .htaccess
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
So, can Javascript on land read if its HTTPS or not? if not HTTPS, windows.location.href with HTTPS how?
EDIT:
function on_load() {
  var proto = window.location.protocol;
  console.log(window.location.protocol);
  if(proto=='http:') {
    window.location.href = 'https://talk.site.com/directory';
    //alert("You have http://, please open the page with https://");
    return false;
  }
}
