microsoft / microsoft/AdaptiveCards

[Authoring] Bug Title Here

Open
#8,624 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Schema Bug
Dominant language
C#
Stars
2k
Forks
595
Avg merge
1d 19h
Merged PRs (30d)
1

Description

Target Application

Microsoft Teams Chatbot

Application Operating System

Windows

Schema Version

1.3

Problem Description

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.

Expected Outcome

Clicking on the "Know More" TextBlock must open link in a new tab.

Actual Outcome

Not opening link in new tab, when clicking on 'Know More'.

Card JSON
"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"
Repro Steps

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the reported Adaptive Card JSON, especially the TextBlock markdown link and target="_blank", in the Microsoft Teams Chatbot environment on Windows with schema version 1.3. Check whether the Teams host supports opening TextBlock links in a new tab; done means either reproducing and fixing the behavior or documenting the host limitation and supported alternative.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.