• HTTPS still reload forever

    By Eric Yan 4 years ago

    The code below in idcWiki.js

    if (window.location.protocol == “https:“) {

    var host = window.location.hostname;
    

    var pathname = window.location.pathname;
    var search = window.location.search;
    var hash = window.location.hash;

    –>Old://var url = “http://” + host + pathname + search + hash;
    –>New: var url = “https://” + host + pathname + search + hash;

    location.replace(url);
    

    }

    The same code doesn't solve the problem yet .

    Actually i don't know why we nees this code to redirect,i will delete these code.