diff --git a/client/jetpack-cloud/sections/sidebar-navigation/lib/constants.ts b/client/jetpack-cloud/sections/sidebar-navigation/lib/constants.ts index 922620c1ce73d..445eedb8af686 100644 --- a/client/jetpack-cloud/sections/sidebar-navigation/lib/constants.ts +++ b/client/jetpack-cloud/sections/sidebar-navigation/lib/constants.ts @@ -4,7 +4,7 @@ export const JETPACK_MANAGE_SITES_LINK_NEEDS_ATTENTION = '/sites?issue_types=all export const JETPACK_MANAGE_SITES_LINK_FAVORITES = '/sites/favorites'; export const JETPACK_MANAGE_PLUGINS_LINK = '/plugins/manage'; export const JETPACK_CLOUD_ACTIVITY_LOG_LINK = '/activity-log'; -export const JETPACK_CLOUD_SCAN_HISTORY_LINK = '/scan/history'; +export const JETPACK_CLOUD_SCAN_LINK = '/scan'; export const JETPACK_CLOUD_SEARCH_LINK = '/jetpack-search'; export const JETPACK_CLOUD_SOCIAL_LINK = '/jetpack-social'; export const JETPACK_CLOUD_SUBSCRIBERS_LINK = '/subscribers'; diff --git a/client/jetpack-cloud/sections/sidebar-navigation/manage-selected-site.tsx b/client/jetpack-cloud/sections/sidebar-navigation/manage-selected-site.tsx index 72175485045c2..329143b222108 100644 --- a/client/jetpack-cloud/sections/sidebar-navigation/manage-selected-site.tsx +++ b/client/jetpack-cloud/sections/sidebar-navigation/manage-selected-site.tsx @@ -42,7 +42,7 @@ import { getSelectedSiteId, getSelectedSiteSlug } from 'calypso/state/ui/selecto import { JETPACK_CLOUD_ACTIVITY_LOG_LINK, JETPACK_CLOUD_MONETIZE_LINK, - JETPACK_CLOUD_SCAN_HISTORY_LINK, + JETPACK_CLOUD_SCAN_LINK, JETPACK_CLOUD_SEARCH_LINK, JETPACK_CLOUD_SOCIAL_LINK, JETPACK_CLOUD_SUBSCRIBERS_LINK, @@ -126,11 +126,11 @@ const useMenuItems = ( { { icon: shield, path: '/', - link: `${ JETPACK_CLOUD_SCAN_HISTORY_LINK }/${ siteSlug }`, + link: `${ JETPACK_CLOUD_SCAN_LINK }/${ siteSlug }`, title: translate( 'Scan' ), - trackEventName: 'calypso_jetpack_sidebar_scan_history_clicked', + trackEventName: 'calypso_jetpack_sidebar_scan_clicked', enabled: isAdmin && showScanHistory && ! isWPForTeamsSite, - isSelected: itemLinkMatches( path, `${ JETPACK_CLOUD_SCAN_HISTORY_LINK }/${ siteSlug }` ), + isSelected: itemLinkMatches( path, `${ JETPACK_CLOUD_SCAN_LINK }/${ siteSlug }` ), }, { icon: search,