all links are now explicitly "http:" unless explicitly set to "https:"
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Sep 2005 14:13:38 +0000 (14:13 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 28 Sep 2005 14:13:38 +0000 (14:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1877 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/opac_utils.js

index a95a45c..42e4694 100644 (file)
@@ -123,9 +123,9 @@ function findBasePath() {
 
 function findBaseURL(ssl) {
        var path = findBasePath();
-       var proto = location.protocol;
-       if(ssl) proto = "https:";
+       var proto = (ssl) ? "https:" : "http:";
        return proto + "//" + location.host + path;
+       dump( 'ssl: ' + ssl + 'proto ' + proto );
 }
 
 function buildImageLink(name, ssl) {