Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/mailbox link professional email without feature flags #64986

Prev Previous commit
Next Next commit
Emails: Add suggestions
  • Loading branch information
AllTerrainDeveloper committed Jun 28, 2022
commit e73b7feb50e76194881576dec9e27cacf60b692c

This file was deleted.

This file was deleted.

11 changes: 2 additions & 9 deletions client/lib/titan/get-titan-urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export function getTitanAppsUrlPrefix( domain ) {
* @param {string?} email - The email address of the Titan account. Used for autofill on Titan's login page.
* @param {string?} app - Can be one of the `TITAN_APPS` - `email`, `calendar` or `contacts`
* @param {boolean?} clearPreviousSessions - Whether to clear previously logged-in sessions.
* @returns The URL with app and prefilled `email_account` as query parameter
* @param {string?} redirectUrl - Where the Professional Email client should redirect the user back to WordPress.
* @returns {string} The URL with app and prefilled `email_account` as query parameter
*/
function getTitanUrl(
titanAppsUrlPrefix,
Expand All @@ -50,14 +51,6 @@ function getTitanUrl(
return titanAppUrl.href;
}

export function getTitanCalendarUrl( titanAppsUrlPrefix, email ) {
return getTitanUrl( titanAppsUrlPrefix, email, TITAN_APPS.CALENDAR );
}

export function getTitanContactsUrl( titanAppsUrlPrefix, email ) {
return getTitanUrl( titanAppsUrlPrefix, email, TITAN_APPS.CONTACTS );
}

/**
* Gets the Web client URL for Professional Email
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ const StepCTA = ( { email, primary, domainType }: StepCTAProps ) => {
return (
<FullWidthButton
href={ getTitanEmailUrl( titanAppsUrlPrefix, email, true ) }
target="_blank"
primary={ primary }
onClick={ () => {
recordEmailAppLaunchEvent( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import './style.scss';

const getExternalUrl = ( mailbox, titanAppsUrlPrefix ) => {
if ( isTitanMailAccount( mailbox ) ) {

return getTitanEmailUrl(
titanAppsUrlPrefix,
getEmailAddress( mailbox ),
Expand Down