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

GH-2086, GH-2084, GH-2040: Update intro hub Get Plus, Midnight & Insights Modal CTA link #595

Merged
merged 8 commits into from Aug 14, 2020
Prev

Remove and replace GHOSTERY_WEBSITE_BASE_URL with GHOSTERY_BASE_URL

  • Loading branch information
benstrumeyer committed Aug 13, 2020
commit 8b0e10f5944e310c9c5c56356cd03984386006dc
@@ -23,7 +23,7 @@ import { sendMessage } from '../../panel/utils/msg';
import globals from '../../../src/classes/Globals';
import ModalExitButton from '../../panel/components/BuildingBlocks/ModalExitButton';

const { GHOSTERY_WEBSITE_BASE_URL, CHECKOUT_BASE_URL } = globals;
const { GHOSTERY_BASE_URL } = globals;
const INSIGHTS = 'insights';
const PLUS = 'plus';
const PREMIUM = 'premium';
@@ -69,14 +69,14 @@ class PromoModal extends React.Component {
let url;
switch (product) {
case PLUS:
url = `${GHOSTERY_WEBSITE_BASE_URL}/products/plus?utm_source=gbe&utm_campaign=${utm_campaign}`;
url = `${GHOSTERY_BASE_URL}/products/plus?utm_source=gbe&utm_campaign=${utm_campaign}`;
break;
case PREMIUM:
url = `${GHOSTERY_WEBSITE_BASE_URL}/midnight?utm_source=gbe&utm_campaign=${utm_campaign}`;
url = `${GHOSTERY_BASE_URL}/midnight?utm_source=gbe&utm_campaign=${utm_campaign}`;
break;
case INSIGHTS:
sendMessage('ping', 'promo_modals_insights_upgrade_cta');
url = `${GHOSTERY_WEBSITE_BASE_URL}/insights/?utm_source=gbe&utm_campaign=${utm_campaign}`;
url = `${GHOSTERY_BASE_URL}/insights/?utm_source=gbe&utm_campaign=${utm_campaign}`;
break;
default:
}
@@ -53,7 +53,6 @@ class Globals {
this.GHOSTERY_BASE_URL = `https://${this.GHOSTERY_ROOT_DOMAIN}`;
this.ACCOUNT_BASE_URL = `https://account.${this.GHOSTERY_ROOT_DOMAIN}`;
this.CHECKOUT_BASE_URL = `https://checkout.${this.GHOSTERY_ROOT_DOMAIN}`;
this.GHOSTERY_WEBSITE_BASE_URL = `https://${this.GHOSTERY_ROOT_DOMAIN}`;
this.METRICS_BASE_URL = `https://${this.DEBUG ? 'staging-d' : 'd'}.ghostery.com`;
this.CMP_BASE_URL = `https://${this.DEBUG ? 'staging-cmp-cdn' : 'cmp-cdn'}.ghostery.com`;
this.CDN_BASE_URL = `https://${this.DEBUG ? 'staging-cdn' : 'cdn'}.ghostery.com`;
ProTip! Use n and p to navigate between commits in a pull request.