为什么 MS Team bot 中的超链接停止工作?
Why hyperlinks in MS Team bot stopped working?
我们使用 FAQPlus 并在答案文本中添加 markdown hyperlinks。几周前,这些 hyperlinks 在浏览器和桌面的机器人聊天卡片中停止工作。当我单击 hyperlink 时,会出现提示。预期结果是在浏览器中打开 link window
当我在 Chromium 控制台中检查 hyperlink 时,它是一个正常的 html 锚点并且 href 是正确的,并且目标是预期的 _blank。我确实注意到几个文档级事件侦听器附加到锚点的单击事件。一个似乎是取消点击事件,当我在 Chromium 控制台中删除事件侦听器时,hyperlink 按预期工作。事件列表器与此代码相关联,当我单击 link 时,我看到它转到了 finally 块。有谁知道是什么导致了这个问题,或者我如何才能找到关于这个事件列表的更多信息?
function Yt(e, t, n, r) {
j || F();
var i = Jt
, o = j;
j = !0;
try {
D(i, e, t, n, r)
} finally {
(j = o) || B()
}
}
在 AdaptiveCard 文本降价 'bold' 和 'hyperlink' 中导致 hyperlink 不可点击
{
"type": "TextBlock",
"wrap": true,
"text": "[**Search**](https://www.bing.com)"
}
它呈现为粗体 link,但单击它不会导航到 link 目标。
但是,如果您使用以下语法,它会起作用:
{
"type": "TextBlock",
"wrap": true,
"text": "**[Search](https://www.bing.com)**"
}
样本JSON
{
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "This is some **bold** text"
},
{
"type": "TextBlock",
"text": "This is some _italic_ text"
},
{
"type": "TextBlock",
"text": "- Bullet \r- List \r",
"wrap": true
},
{
"type": "TextBlock",
"text": "1. Numbered\r2. List\r",
"wrap": true
},
{
"type": "TextBlock",
"text": "Check out [Adaptive Cards](https://adaptivecards.io)"
},
{
"type": "TextBlock",
"wrap": true,
"text": "This [**Search doesnt work**](https://www.bing.com)"
},
{
"type": "TextBlock",
"wrap": true,
"text": "This **[Search Works](https://www.bing.com)**"
}
]
}
我们使用 FAQPlus 并在答案文本中添加 markdown hyperlinks。几周前,这些 hyperlinks 在浏览器和桌面的机器人聊天卡片中停止工作。当我单击 hyperlink 时,会出现提示。预期结果是在浏览器中打开 link window
当我在 Chromium 控制台中检查 hyperlink 时,它是一个正常的 html 锚点并且 href 是正确的,并且目标是预期的 _blank。我确实注意到几个文档级事件侦听器附加到锚点的单击事件。一个似乎是取消点击事件,当我在 Chromium 控制台中删除事件侦听器时,hyperlink 按预期工作。事件列表器与此代码相关联,当我单击 link 时,我看到它转到了 finally 块。有谁知道是什么导致了这个问题,或者我如何才能找到关于这个事件列表的更多信息?
function Yt(e, t, n, r) {
j || F();
var i = Jt
, o = j;
j = !0;
try {
D(i, e, t, n, r)
} finally {
(j = o) || B()
}
}
在 AdaptiveCard 文本降价 'bold' 和 'hyperlink' 中导致 hyperlink 不可点击
{
"type": "TextBlock",
"wrap": true,
"text": "[**Search**](https://www.bing.com)"
}
它呈现为粗体 link,但单击它不会导航到 link 目标。
但是,如果您使用以下语法,它会起作用:
{
"type": "TextBlock",
"wrap": true,
"text": "**[Search](https://www.bing.com)**"
}
样本JSON
{
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "This is some **bold** text"
},
{
"type": "TextBlock",
"text": "This is some _italic_ text"
},
{
"type": "TextBlock",
"text": "- Bullet \r- List \r",
"wrap": true
},
{
"type": "TextBlock",
"text": "1. Numbered\r2. List\r",
"wrap": true
},
{
"type": "TextBlock",
"text": "Check out [Adaptive Cards](https://adaptivecards.io)"
},
{
"type": "TextBlock",
"wrap": true,
"text": "This [**Search doesnt work**](https://www.bing.com)"
},
{
"type": "TextBlock",
"wrap": true,
"text": "This **[Search Works](https://www.bing.com)**"
}
]
}