Why don't disqus comments load over https?

Disqus comments are downloaded here: http://www.oddprints.com/help but not here: https://www.oddprints.com/help any ideas?

All resources look safe (relative protocol urls), so I don't think it is.

+4
source share
2 answers

This is because disqus treated the two URLs as different and therefore loaded different streams. If you want the http and https URLs to have the same comment streams, you need to specify the canonical url in config disqus. Here is how I did it:

<div id="disqus_thread"></div>
<script>
    /**
     *  https://disqus.com/admin/universalcode/#configuration-variables
     */
    var disqus_config = function () {
        this.page.url = "http://www.oddprints.com/help";
        //this.page.identifier = "oddprints"; // add a different id here if you want a fresh thread....
    };
    (function() {
        var d = document, s = d.createElement('script');
        s.src = '//oddprints.disqus.com/embed.js';
        s.setAttribute('data-timestamp', +new Date());
        (d.head || d.body).appendChild(s);
    })();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>

, config http url url, page.identifier. , , , http, disqus.

+3

All Articles