From 1f1cfcbeea6635788a9b1abcf755ca0555cb7c11 Mon Sep 17 00:00:00 2001 From: Bogdan Nikolic Date: Tue, 24 Dec 2024 19:29:04 +0100 Subject: [PATCH] Domain management: Fix email management path when the feature flag is ON --- client/my-sites/email/paths.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/my-sites/email/paths.ts b/client/my-sites/email/paths.ts index d467d9037669c9..e727173319b26b 100644 --- a/client/my-sites/email/paths.ts +++ b/client/my-sites/email/paths.ts @@ -150,7 +150,9 @@ export const getEmailManagementPath: EmailPathUtilityFunction = ( urlParameters ) => { if ( isUnderDomainManagementAll( relativeTo ) ) { - return getPath( siteName, domainName, null, relativeTo, urlParameters ); + return `${ domainsManagementPrefix }/${ siteName }/${ domainName }${ buildQueryString( + urlParameters + ) }`; } return getPath( siteName, domainName, 'manage', relativeTo, urlParameters );