BotFramework-WebChat
BotFramework-WebChat copied to clipboard
Mailto links - External link icon inconsistent display
Screenshots
Message with a single mailto link:
Message with hyperlink and mailto link:
Version
<meta name="botframework-directlinespeech:version" content="4.13.0">
<meta name="botframework-webchat:bundle:variant" content="full-es5">
<meta name="botframework-webchat:bundle:version" content="4.13.0">
<meta name="botframework-webchat:core:version" content="4.13.0">
<meta name="botframework-webchat:ui:version" content="4.13.0">
Describe the bug
If a single mailto link is used in a message it displays without the external link icon. If more links are added, the icon is also added to the mailto link.
Steps to reproduce
- Get bot to send a message containing a single mailto link.
- Mailto link is formatted without external link icon.
- Get bot to send a message with mailto and standard hyperlinks.
- All links including mailto have the external link icon.
Expected behavior
I'm not sure of the expected behavious of mailto links, if they should or should not show the icon, but the displaying of the icon should be consistent.
Additional context
[Bug]
@MikeCardiff I can't repro on my side, could you assist?
I am sending the following Markdown text:
[[email protected]](mailto:[email protected])
[[email protected]](mailto:[email protected])
And I don't see the external link icon on either of them.
Could you hover to see if the "[email protected]" on your side, is "mailto:[email protected]"?
@compulim No problem. I've just done some more testing. It appears to behave differently when using markdown or entering a link without markdown and if using no line breaks, a single line \n
or multiple lines \n\n
. Results below, hope it helps.
Both links have the icon
www.example.com
[[email protected]](mailto:[email protected])
www.example.com
[email protected]
www.example.com
www.example.com
www.example.com www.example.com
www.example.com [email protected]
this is a link www.example.com or email [email protected]
Neither link has the icon
[www.example.com](www.example.com)
[email protected]
[www.example.com](www.example.com)
[[email protected]](mailto:[email protected])
this is a link [www.example.com](www.example.com) or email [[email protected]](mailto:[email protected])
[www.example.com](www.example.com)
[[email protected]](mailto:[email protected])
[www.example.com](www.example.com)
[www.example.com](www.example.com)
[www.example.com](www.example.com) [www.example.com](www.example.com)
[email protected] www.example.com
Only URL has the icon
www.example.com
[email protected]
Thanks @MikeCardiff, I can finally repro on my side.
We will schedule this issue while we are planning.