Skip to content

Add "noopener noreferrer" to card action#3224

Merged
corinagum merged 2 commits intomicrosoft:masterfrom
compulim:fix-3223
Jun 9, 2020
Merged

Add "noopener noreferrer" to card action#3224
corinagum merged 2 commits intomicrosoft:masterfrom
compulim:fix-3223

Conversation

@compulim
Copy link
Copy Markdown
Contributor

@compulim compulim commented Jun 8, 2020

Fixes #3223.

Changelog Entry

Fixed

  • Fixed #3223. Tap an openUrl card action should open URL in a new tab with noopener noreferrer set, by @compulim in PR #3224

Description

Add noopener noreferrer to openUrl card action. This card action is used by Adaptive Card, hero card, suggested actions, etc.

Specific Changes

  • Modify the default card action middleware
    • When a card action of openUrl is being executed, it should open using window.open(url, '_blank', 'noopener noreferrer')

  • Testing Added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Card action should open in new window with "noopener" and "noreferrer"

2 participants