botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Hyperlink issue in webchat

Open Sams4u opened this issue 10 years ago • 5 comments

Hi, Am trying to create a hyperlink which should directly open an IM window upon clicking. Hyperlink is created using following syntax context.PostAsync($"Please click on Title"); It works with emulator but not with webchat. When i checked the html tag is getting generated but href is not.

I'm surprised a hyperlink is generated at all - it looks like you're posting plain text to the user with your PostAsync call. Did GitHub formatting strip out some content?

willportnoy avatar Aug 18 '16 03:08 willportnoy

My bad. I think some formatting issue. Syntax:- await context.PostAsync($"Please click on Title");

Sams4u avatar Aug 18 '16 07:08 Sams4u

Sorry github doesn't allow me to paste syntax as it is. I have followed normal syntax to create a hyperlink nothing special. For a hyperlink to invoke IM, href should be somewhat like sip:[email protected]. same if i use in BOT, webchat renders is as anchor tag with no href. But the same work with emulator.

Sams4u avatar Aug 18 '16 07:08 Sams4u

The chat control uses markdown:

https://docs.botframework.com/en-us/support/embed-chat-control2/

willportnoy avatar Aug 25 '16 19:08 willportnoy

I'm going to close this issue, but feel free to open a new issue with further questions.

willportnoy avatar Aug 26 '16 21:08 willportnoy