Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
因此,如果您在 url 中使用 hashbang,则 Disqus 仅适用于动态刷新的页面。所以我修改了我的模式,例如:
http://domain.com/reader/#!23
这很好,但是当有人发表评论时,评论的链接将如下所示(来自 Disqus):
http://domain.com/reader/#!23#comment-249780218
当您单击该链接时,页面加载正常,但没有评论加载。现在,如果您直接导航到第一个链接,所有评论都会加载。有什么建议么?
“#”字符是 URL 中片段标识符的标记。包含多个“#”的 URL 格式不正确。所以也许你应该尝试 %-转义第二个 '#' 字符。
为什么这是 disqus 方面的问题?当然,问题就在你身边……你没有逃避第二个“#”字符。
您是否查看了显示这些评论链接之一的某些 disqus 页面的来源?第二个“#”是否在链接的“href”属性中转义?(如果没有,那是一个 disqus 错误......)