Skip to content

Commit

Permalink
Update path to support all-domain context
Browse files Browse the repository at this point in the history
  • Loading branch information
bogiii authored and phcp committed Jan 6, 2025
1 parent 10f7a13 commit 3967d50
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion client/my-sites/email/paths.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,15 @@ export const getNewTitanAccountPath: EmailPathUtilityFunction = (
domainName,
relativeTo,
urlParameters
) => getPath( siteName, domainName, 'titan/new', relativeTo, urlParameters );
) => {
if ( isUnderDomainManagementAll( relativeTo ) ) {
return `${ domainsManagementPrefix }/${ domainName }/titan/new/${ siteName }${ buildQueryString(
urlParameters
) }`;
}

return getPath( siteName, domainName, 'titan/new', relativeTo, urlParameters );
};

// Retrieves the URL to set up Titan mailboxes
export const getTitanSetUpMailboxPath: EmailPathUtilityFunction = (
Expand Down

0 comments on commit 3967d50

Please sign in to comment.