From 57b98fd55719faaef1cabe1506a0e05e4a3c2e65 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Wed, 2 Oct 2019 01:03:40 +0000 Subject: [PATCH] article: Add missing host to page url for disqus --- app/article/article.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/article/article.js b/app/article/article.js index b92d18c..81ceaaa 100644 --- a/app/article/article.js +++ b/app/article/article.js @@ -86,9 +86,10 @@ const Article = { this.showcomments ? m('div.commentcontainer', [ m('div#disqus_thread', { oncreate: function() { + let fullhost = window.location.protocol + '//' + window.location.host /*eslint-disable */ window.disqus_config = function () { - this.page.url = '/article/' + vnode.state.article.path + this.page.url = fullhost + '/article/' + vnode.state.article.path this.page.identifier = 'article-' + vnode.state.article.id }; (function() { // DON'T EDIT BELOW THIS LINE