Open Link in New Tab #8623
ayushhhCSharp
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using adaptive card to render a response for my bot using Bot Framework(C#).
I and concatenating the response and a 'Know More' link, on clicking which, link must open in a new tab. Both of them being of type Text Block. The adaptive card JSON is as follows:
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"text": "${title1}",
"wrap": true,
"target":"_blank"
},
{
"type": "TextBlock",
"text": "${title2}",
"wrap": true,
"color": "accent"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3"
I tried adding the url parameter to the second TextBlock, and target=_blank too, but they do still open the link in the current tab itself.
Any suggestions on what is going wrong will be appreciated.
Not: Only want to second text block to be a link and open in a new tab, and it has to be a TextBlock and not a button.
Thanks in Advance.
Beta Was this translation helpful? Give feedback.
All reactions