From d4f64bfded70f407ed7b89f07e53d6375fd5d725 Mon Sep 17 00:00:00 2001 From: Jeremy Herve Date: Thu, 20 Jul 2023 16:56:13 +0200 Subject: [PATCH] Recommendations Wizard: use Jetpack redirects for all links See https://github.com/Automattic/jetpack/pull/31940#discussion_r1267854728 --- .../_inc/client/recommendations/feature-utils.js | 13 ++++++------- .../jetpack/changelog/update-recommendations-links | 5 +++++ 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100644 projects/plugins/jetpack/changelog/update-recommendations-links diff --git a/projects/plugins/jetpack/_inc/client/recommendations/feature-utils.js b/projects/plugins/jetpack/_inc/client/recommendations/feature-utils.js index 9629c0d672cd3..7911c1ab772f5 100644 --- a/projects/plugins/jetpack/_inc/client/recommendations/feature-utils.js +++ b/projects/plugins/jetpack/_inc/client/recommendations/feature-utils.js @@ -312,8 +312,7 @@ export const getStepContent = ( state, stepSlug ) => { 'The Jetpack Newsletter Form combined with Creative Mail by Constant Contact can help automatically gather subscribers and send them beautiful emails. Learn more', 'jetpack' ), - descriptionLink: - 'https://jetpack.com/support/jetpack-blocks/form-block/newsletter-sign-up-form/', + descriptionLink: getRedirectUrl( 'jetpack-support-jetpack-blocks-newsletter-sign-up' ), ctaText: __( 'Install Creative Mail', 'jetpack' ), illustration: 'assistant-creative-mail', }; @@ -325,7 +324,7 @@ export const getStepContent = ( state, stepSlug ) => { 'With Jetpack Newsletter you can keep your audience engaged by automatically sending your content via email. Learn more', 'jetpack' ), - descriptionLink: 'https://jetpack.com/newsletter/', + descriptionLink: getRedirectUrl( 'jetpack-newsletter-landing' ), ctaText: __( 'Enable Newsletter', 'jetpack' ), illustration: 'assistant-creative-mail', }; @@ -340,7 +339,7 @@ export const getStepContent = ( state, stepSlug ) => { 'If your site ever goes down, Downtime Monitoring will send you an email or push notitification to let you know. Learn more', 'jetpack' ), - descriptionLink: 'https://jetpack.com/support/monitor/', + descriptionLink: getRedirectUrl( 'jetpack-support-monitor' ), ctaText: __( 'Enable Downtime Monitoring', 'jetpack' ), illustration: 'assistant-downtime-monitoring', }; @@ -355,7 +354,7 @@ export const getStepContent = ( state, stepSlug ) => { 'Displaying Related Posts at the end of your content keeps visitors engaged and on your site. Learn more', 'jetpack' ), - descriptionLink: 'https://jetpack.com/support/related-posts/', + descriptionLink: getRedirectUrl( 'jetpack-support-related-posts' ), ctaText: __( 'Enable Related Posts', 'jetpack' ), illustration: 'assistant-related-post', }; @@ -367,7 +366,7 @@ export const getStepContent = ( state, stepSlug ) => { 'Faster sites get better ranking in search engines and help keep visitors on your site longer. Jetpack will automatically optimize and load your images and files from our global Content Delivery Network (CDN). Learn more', 'jetpack' ), - descriptionLink: 'https://jetpack.com/support/site-accelerator/', + descriptionLink: getRedirectUrl( 'jetpack-support-site-accelerator' ), ctaText: __( 'Enable Site Accelerator', 'jetpack' ), illustration: 'assistant-site-accelerator', }; @@ -426,7 +425,7 @@ export const getStepContent = ( state, stepSlug ) => { 'We’re partnered with WooCommerce — a customizable, open-source eCommerce platform built for WordPress. It’s everything you need to start selling products today. Learn more', 'jetpack' ), - descriptionLink: 'https://woocommerce.com/woocommerce-features/', + descriptionLink: getRedirectUrl( 'woocommerce-features-landing' ), ctaText: __( 'Install WooCommerce', 'jetpack' ), illustration: 'assistant-woo-commerce', }; diff --git a/projects/plugins/jetpack/changelog/update-recommendations-links b/projects/plugins/jetpack/changelog/update-recommendations-links new file mode 100644 index 0000000000000..9596a7ee8ee56 --- /dev/null +++ b/projects/plugins/jetpack/changelog/update-recommendations-links @@ -0,0 +1,5 @@ +Significance: patch +Type: enhancement +Comment: Recommendations: update links to use Jetpack Redirects for all links. + +