Microsoft Teams deep link to staticTab 仅打开清单中默认 URL 的选项卡

Microsoft Teams deep link to staticTab only opens the tab with the default URL from manifest

我们试图从机器人发送的卡片中深入 link Microsoft Teams 静态选项卡。

选项卡的 link 有效,但选项卡仅显示应用程序清单文件中定义的默认页面。 webURL 参数无效。

这是link:

https://teams.microsoft.com/l/entity/"appid"/"tabid"?webUrl=https%3a%2f%2fexample.com&label=Bliblablubb&context=%7b%22subEntityId%22%3a%22test%22%7d

我希望选项卡显示网站 example.com。这里不是这种情况。

当然,我们在 manifest.json

的 "validDomains" 部分列出了我们的域名

有人有想法吗?

请参阅 Create deep links 的 "Generating a deep link to your tab" 部分。正如它在那里所述,webUrl 是 "fallback URL to use if the client does not support rendering the tab".

这意味着,例如,如果 Microsoft 实施了 "smart tv" 版本的 Teams,但它没有正确处理深层链接,它将回退到打开该网站 url。但是,如果客户端 能够呈现选项卡本身(例如桌面、网络、android 应用程序等),它将尝试这样做,并且它会呈现它知道什么,也就是你所说的 "the default page which is defined in the App manifest file".

entitywebUrl 是您的 deeplink URL 中的一个可选字段,如果您 运行 所在的客户端不支持呈现您的选项卡,它将呈现。所以 webURL 确实有影响,但是当客户端无法呈现实际的 link 时 here.