Slack 集成问题与相对标题链接

Hi, I noticed an odd interaction with DiscoTOC and Slack integration. Basically the header links don’t properly post.

See details here

4 个赞

That is because the heading links do not include the path to the topic. For example <a name="overview" href="#overview">. The Chat Integration plugin is attempting to convert relative links into absolute links by prepending the forum’s root URL to any links in the post, but that is not going to work for the header links because the path to the topic is missing.

A possible solution would be for us to add the path to the topic to the TOC href element. For example, instead of setting <a name="overview" href="#overview">, the href element would be set to something like /t/your-topic-slug/1234#overview".

4 个赞

我在 Slack 中发布任何带有标题的帖子时都会遇到这个问题——标题文本前面会有一个指向网站主页的链接,链接文本是标题的名称。

例如,像这样的帖子:

在 Slack 中显示为:

2 个赞

是的,这似乎是我们的自动标题链接存在问题,即使没有 DiscoTOC 主题组件也会出现。我将更新标题以反映这一点。

5 个赞

您好,关于这个bug有什么更新吗?谢谢。

3 个赞

我认为它仍然在 pr-welcome 中。我已通知员工体验团队,他们已知晓此问题。

4 个赞