Skip to content

Commit

Permalink
Jetpack Cloud Classic: Point Start earning link to /monetize (#91362)
Browse files Browse the repository at this point in the history
* Point Start earning link to /monetize

* Only change Jetpack cloud link
  • Loading branch information
DustyReagan authored Jun 4, 2024
1 parent 9f30a70 commit 127f98a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { chartBar, people, trendingUp } from '@wordpress/icons';
import { useTranslate } from 'i18n-calypso';
import { SectionContainer } from 'calypso/components/section';
import { recordTracksEvent } from 'calypso/lib/analytics/tracks';
import isJetpackCloud from 'calypso/lib/jetpack/is-jetpack-cloud';
import { useSelector } from 'calypso/state';
import getIsSiteWPCOM from 'calypso/state/selectors/is-site-wpcom';
import { getSiteOption } from 'calypso/state/sites/selectors';
Expand Down Expand Up @@ -129,7 +130,11 @@ const GrowYourAudience = () => {
title={ translate( 'Start earning' ) }
tracksEventCta="earn"
ctaLabel={ translate( 'Learn more' ) }
url={ `https://wordpress.com/earn/${ selectedSiteSlug ?? '' }` }
url={
isJetpackCloud()
? `/monetize/${ selectedSiteSlug ?? '' }`
: `/earn/${ selectedSiteSlug ?? '' }`
}
/>
<GrowYourAudienceCard
icon={ people }
Expand Down

0 comments on commit 127f98a

Please sign in to comment.