“显示完整帖子”按钮在子文件夹安装中不起作用

我最近将我们的 Discourse 安装迁移到了一个子文件夹。执行此操作后,“显示完整帖子”按钮停止工作——点击以展开内容,但它没有加载完整的帖子。

我的 WP Discourse 配置中没有任何更改。

https://tecnoblog.net/comunidade/t/paramount-oferece-us-108-bilhoes-em-dinheiro-para-tomar-warner-da-netflix/157441

当直接在浏览器中访问嵌入式 URL 时,它返回 404 错误:

https://tecnoblog.net/comunidade/posts/483289/expand-embed

1 个赞

这不相关,该路由只响应 application/json 内容类型。https://tecnoblog.net/comunidade/posts/483289/expand-embed.json 返回

"\"\u003cdiv\u003e\u003cdiv\u003e\u003c/div\u003e\u003c/div\u003e\\n\u003chr\u003e\\n\u003csmall\u003eEste é um tópico de discussão auxiliar para a entrada original em \u003ca href='https://tecnoblog.net/noticias/paramount-oferece-us-108-bilhoes-em-dinheiro-para-tomar-warner-da-netflix'\u003ehttps://tecnoblog.net/noticias/paramount-oferece-us-108-bilhoes-em-dinheiro-para-tomar-warner-da-netflix\u003c/a\u003e\u003c/small\u003e\\n\""

\u003cdiv\u003e\u003cdiv\u003e\u003c/div\u003e\u003c/div\u003e 应该是内容。

你是否也更改了博客网址?

onebox 的显示对我来说也很奇怪,我期望它会有一个缓存的截断内容,所以我假设 body.present? 在上面的条件中是 false。

你能进入 Rails 控制台并检查 TopicEmbed.where(topic_id: 157441).pick(:embed_url) 是否向你显示了正确的博客内容网址吗?

你能在 https://tecnoblog.net/comunidade/logs 上发现任何相关的错误吗?

2 个赞

哦,好的!

它返回帖子的网址:

discourse(prod) => TopicEmbed.where(topic_id: 157441).pick(:embed_url)
=> “``https://tecnoblog.net/noticias/paramount-oferece-us-108-bilhoes-em-dinheiro-para-tomar-warner-da-netflix”

我不认为日志中有任何相关的错误。

没有!博客网址一直都是 tecnoblog.net

还值得一提的是,服务器的 IP 在 CF(Cloudflare)的防火墙中被绕过了:

1 个赞