From 93ce6b02cdf731010fbe3be2c5908c03ef6e1295 Mon Sep 17 00:00:00 2001 From: Bogdan Nikolic Date: Wed, 15 Jan 2025 11:21:43 +0100 Subject: [PATCH] Fix regression: replace Email breadcrumb --- .../subpage-wrapper/headers/dns-record-header.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/client/my-sites/domains/domain-management/subpage-wrapper/headers/dns-record-header.tsx b/client/my-sites/domains/domain-management/subpage-wrapper/headers/dns-record-header.tsx index e0230b206bad93..29cc3498e25cff 100644 --- a/client/my-sites/domains/domain-management/subpage-wrapper/headers/dns-record-header.tsx +++ b/client/my-sites/domains/domain-management/subpage-wrapper/headers/dns-record-header.tsx @@ -4,8 +4,7 @@ import { translate } from 'i18n-calypso'; import React, { useMemo } from 'react'; import ExternalLink from 'calypso/components/external-link'; import NavigationHeader from 'calypso/components/navigation-header'; -import { domainManagementAllOverview } from 'calypso/my-sites/domains/paths'; -import { getEmailManagementPath } from 'calypso/my-sites/email/paths'; +import { domainManagementAllOverview, domainManagementDns } from 'calypso/my-sites/domains/paths'; import SiteIcon from 'calypso/sites/components/sites-dataviews/site-icon'; import { useSelector } from 'calypso/state'; import getCurrentRoute from 'calypso/state/selectors/get-current-route'; @@ -46,8 +45,8 @@ const DnsRecordHeader: CustomHeaderComponentType = ( { ), }, { - label: translate( 'Email' ), - href: getEmailManagementPath( selectedSiteSlug, selectedDomainName, currentRoute ), + label: translate( 'DNS records' ), + href: domainManagementDns( selectedSiteSlug, selectedDomainName, currentRoute ), }, { label: context === 'add' ? addDnsRecordTitle : editDnsRecordTitle, @@ -66,7 +65,7 @@ const DnsRecordHeader: CustomHeaderComponentType = ( { } return baseNavigationItems; - }, [ inSiteContext, selectedDomainName, selectedSiteSlug, site, translate ] ); + }, [ context, currentRoute, inSiteContext, selectedDomainName, selectedSiteSlug, site ] ); return (