Action.OpenUrl is not clickable for some URLs in Microsoft Teams bot

%3CLINGO-SUB%20id%3D%22lingo-sub-2078695%22%20slang%3D%22en-US%22%3EAction.OpenUrl%20is%20not%20clickable%20for%20some%20URLs%20in%20Microsoft%20Teams%20bot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2078695%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22votecell%20post-layout--left%22%3E%3CDIV%20class%3D%22js-voting-container%20grid%20jc-center%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3EHello%2C%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%20class%3D%22postcell%20post-layout--right%22%3E%3CDIV%20class%3D%22s-prose%20js-post-body%22%3E%3CP%3EI've%20developed%20bot%20using%20Microsoft%20bot%20framework%2C%20the%20bot%20response%20is%20adaptive%20card%20and%20i%20want%20to%20use%20the%20action.openurl%20button%20to%20open%20specific%20link%20and%20it%20worked%20with%20some%20urls%20but%20when%20i%20used%20url%20to%20document%20located%20in%20Microsoft%20online%20word%20the%20button%20become%20not%20clickable%20and%20this%20is%20the%20json%20object%20%3A%3C%2FP%3E%3CPRE%3E%7B%0A%20%20%22type%22%3A%20%22AdaptiveCard%22%2C%0A%20%20%22body%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22type%22%3A%20%22TextBlock%22%2C%0A%20%20%20%20%20%20%22size%22%3A%20%22Medium%22%2C%0A%20%20%20%20%20%20%22weight%22%3A%20%22Bolder%22%2C%0A%20%20%20%20%20%20%22text%22%3A%20%22test%22%2C%0A%20%20%20%20%20%20%22wrap%22%3A%20true%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22actions%22%3A%20%5B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%22type%22%3A%20%22Action.OpenUrl%22%2C%0A%20%20%20%20%20%20%22title%22%3A%20%22View%22%2C%0A%20%20%20%20%20%20%22url%22%3A%20%22https%3A%2F%2Fcisasuedu-my.sharepoint.com%2Fpersonal%2Fshereen_fathy_cis_asu_edu_eg%2F_layouts%2F15%2Fdoc.aspx%3Fsourcedoc%3D%7B3adf4a1f-32ee-434e-bf1e-9df321a9e504%7D%26amp%3Baction%3Dedit%22%0A%20%20%20%20%7D%0A%20%20%5D%2C%0A%20%20%22%24schema%22%3A%20%22http%3A%2F%2Fadaptivecards.io%2Fschemas%2Fadaptive-card.json%22%2C%0A%20%20%22version%22%3A%20%221.2%22%0A%7D%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2078695%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EChat%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2081129%22%20slang%3D%22en-US%22%3ERe%3A%20Action.OpenUrl%20is%20not%20clickable%20for%20some%20URLs%20in%20Microsoft%20Teams%20bot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2081129%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F637347%22%20target%3D%22_blank%22%3E%40ShereenFathy%3C%2FA%3E%2C%20Marking%20this%20as%20duplicate%20and%20will%20be%20tracked%20on%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fmicrosoft%2FAdaptiveCards%2Fissues%2F5297%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3E%5BMSTeams%5D%5BAction.OpenURL%5D%20Open%20URl%20button%20is%20not%20working%20with%20some%20URls%20in%20Teams%20%C2%B7%20Issue%20%235297%20%C2%B7%20microsoft%2FAdaptiveCards%20(github.com)%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor
Hello,

I've developed bot using Microsoft bot framework, the bot response is adaptive card and i want to use the action.openurl button to open specific link and it worked with some urls but when i used url to document located in Microsoft online word the button become not clickable and this is the json object :

{
  "type": "AdaptiveCard",
  "body": [
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "test",
      "wrap": true
    }
  ],
  "actions": [
    {
      "type": "Action.OpenUrl",
      "title": "View",
      "url": "https://cisasuedu-my.sharepoint.com/personal/shereen_fathy_cis_asu_edu_eg/_layouts/15/doc.aspx?sourcedoc={3adf4a1f-32ee-434e-bf1e-9df321a9e504}&action=edit"
    }
  ],
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "version": "1.2"
}

 

1 Reply