-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Embedded links in the same domain as the webchat should open in the same tab, instead of a new tab - related to #3087 #2892
Copy link
Copy link
Open
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportexempt from daily DRI reportexempt from daily DRI reportbacklogOut of scope for the current iteration but it will be evaluated in a future release.Out of scope for the current iteration but it will be evaluated in a future release.community-help-wantedThis is a good issue for a contributor to take on and submit a solutionThis is a good issue for a contributor to take on and submit a solutioncustomer-replied-toRequired for internal reporting. Do not delete.Required for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.Required for internal Azure reporting. Do not delete.feature-requestAzure report labelAzure report labelfront-burner
Metadata
Metadata
Assignees
Labels
Bot ServicesRequired for internal Azure reporting. Do not delete. Do not change color.Required for internal Azure reporting. Do not delete. Do not change color.ExemptFromDailyDRIReportexempt from daily DRI reportexempt from daily DRI reportbacklogOut of scope for the current iteration but it will be evaluated in a future release.Out of scope for the current iteration but it will be evaluated in a future release.community-help-wantedThis is a good issue for a contributor to take on and submit a solutionThis is a good issue for a contributor to take on and submit a solutioncustomer-replied-toRequired for internal reporting. Do not delete.Required for internal reporting. Do not delete.customer-reportedRequired for internal Azure reporting. Do not delete.Required for internal Azure reporting. Do not delete.feature-requestAzure report labelAzure report labelfront-burner
Feature Request
Is your feature request related to a problem? Please describe.
Embedded web links in messages that are for the same domain open in new tabs. It would be nice to be able to control whether an embedded link in the same domain opens in a new tab or in the same tab.
For example,
If the webchat is active in the web domain of 'test' and an embedded link is for a domain 'test1' then the link will be.
<a href='https://test1/...' target='_blank' />else if the domain of the embedded link is for the same domain as the webchat then the link will be
<a href='https://test/...' target='_self' />Describe the suggestion or request in detail
It would be nice to have a webchat style option to control whether a link within the same domain as the webchat opens in a new tab or the same tab.
https://github.com/Microsoft/BotFramework-WebChat/blob/master/packages/component/src/Styles/defaultStyleOptions.js
Describe alternatives you have considered
The only other solutions to solve this problem is to implement a work around using DOM manipulation or to implement a custom webchat client from scratch.
Additional context
This is an issue with embedded links in messages not action buttons that appear on the bottom of cards. Though it would make sense that this feature would also affect the behavior of action buttons as well.