From 94065619c67f259979816478f7a5613011748f39 Mon Sep 17 00:00:00 2001 From: Ian Ramos <5714212+IanRamosC@users.noreply.github.com> Date: Thu, 31 Oct 2024 23:50:23 -0300 Subject: [PATCH] My Jetpack: point to right redirect --- .../_inc/components/welcome-flow/ConnectionStep.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/projects/packages/my-jetpack/_inc/components/welcome-flow/ConnectionStep.tsx b/projects/packages/my-jetpack/_inc/components/welcome-flow/ConnectionStep.tsx index 990ae4421be49..508ae01d923d2 100644 --- a/projects/packages/my-jetpack/_inc/components/welcome-flow/ConnectionStep.tsx +++ b/projects/packages/my-jetpack/_inc/components/welcome-flow/ConnectionStep.tsx @@ -35,11 +35,14 @@ const ConnectionStep = ( { const { recordEvent } = useAnalytics(); const { setNotice, resetNotice } = useContext( NoticeContext ); - const { siteUrl, adminUrl } = getMyJetpackWindowInitialState(); + const { siteSuffix, siteUrl, adminUrl } = getMyJetpackWindowInitialState(); const redirectUri = `?redirect_uri=${ encodeURIComponent( window.location.href ) }`; const connectAfterCheckoutUrl = `&connect_after_checkout=true&from_site_slug=${ siteUrl }&admin_url=${ adminUrl }`; const query = `${ redirectUri }${ connectAfterCheckoutUrl }`; - const jetpackPlansPath = getRedirectUrl( 'jetpack-nav-plans-no-site', { query } ); + const jetpackPlansPath = getRedirectUrl( 'jetpack-my-jetpack-site-only-plans', { + site: siteSuffix, + query, + } ); const activationButtonLabel = __( 'Activate Jetpack in one click', 'jetpack-my-jetpack' ); const { refetch: refetchOwnershipData } = useProductsByOwnership();