Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jetpack Plugins: Open links in plugin content in a new window #8744

Merged
merged 1 commit into from
Oct 28, 2016

Conversation

tyxla
Copy link
Member

@tyxla tyxla commented Oct 14, 2016

Links in plugin content are always external, but we currently open them in the same window. This PR alters the normalization utility function normalizePluginData() so it will open the links in the plugin content in a new window.

To test:

  1. Checkout this branch
  2. Go to http://calypso.localhost:3000/plugins/$plugin/$site, where $plugin is a plugin with links in the content, and $site is one of your Jetpack sites (I used the google-sitemap-generator plugin for testing).
  3. Verify the links in the content open in new window and contain the target="_blank" fixes - as discussed and done in Add rel="noopener noreferrer" wherever target="_blank" is used #7680.

/cc @johnHackworth @ryelle @mtias

@tyxla tyxla added [Type] Enhancement [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. Jetpack Plugins labels Oct 14, 2016
@tyxla tyxla self-assigned this Oct 14, 2016
@matticbot
Copy link
Contributor

@johnHackworth
Copy link
Contributor

ok, this makes sense! we should have thought about it before... :)

🚢

@johnHackworth johnHackworth added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Oct 27, 2016
@tyxla tyxla force-pushed the update/jetpack-plugins-content-links-new-window branch from 01d9991 to 99827f5 Compare October 28, 2016 10:07
@tyxla tyxla merged commit fce0968 into master Oct 28, 2016
@tyxla tyxla deleted the update/jetpack-plugins-content-links-new-window branch October 28, 2016 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants