Open
Description
您好!非常棒的工作,很早就用在我的网站上了,https://esl.hohoweiya.xyz/
最近我发现了个问题,我在 disqus 后台管理评论时,发现带有查询字符串的访问链接会创建新的 thread,比如
虽然在带查询字符串的网页上仍然能够成功加载 https://esl.hohoweiya.xyz/04-Linear-Methods-for-Classification/4.2-Linear-Regression-of-an-Indicator-Matrix/index.html 下的评论。
基本信息
目前我使用的是最新的第二个版本 88dd45a ,建站工具为 mkdocs,配置信息为
<div id="comment"></div>
<script>
var disq = new iDisqus('comment', {
forum: 'esl-hohoweiya-xyz',
api: 'https://api.hohoweiya.xyz/disqus-php-api/api/',
site: 'https://esl.hohoweiya.xyz',
mode: 1,
timeout: 3000,
init: true,
relatedType: "popular",
url: "{{ page.canonical_url | replace(config.site_url, "") }}"
});
</script>
其中 url
项会除掉查询字符串,如上面网页无论是否存在查询字符串都是
url: "/04-Linear-Methods-for-Classification/4.2-Linear-Regression-of-an-Indicator-Matrix/index.html"
一些尝试
- 如果直接使用 disqus 的 universal code,https://disqus.com/admin/install/platforms/universalcode/ ,对于带查询字符串的网页也不会创建新的 thread
- 一开始怀疑是触发了 create thread 的操作,
Line 1902 in 69a4c39
但是通过 chrome devtool 设置断点并未发现相应语句有被执行 - 怀疑是当加载 disqus 时,设置的 identifier 等变量因为某种原因被清了,使得再次加载时,disqus 自动为当前 url 建立 thread。(但是对 javascript 的了解非常少,可能这个猜测有点幼稚)
想请教下可能的原因及处理方案,谢谢!
Metadata
Metadata
Assignees
Labels
No labels