Skip to content

Commit 2a6c310

Browse files
authored
Make privacy and terms footer links go to tb.pro (#804)
1 parent dface05 commit 2a6c310

5 files changed

Lines changed: 8 additions & 36 deletions

File tree

assets/app/vue/components/FooterBar.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { computed, ref } from 'vue';
33
import { useI18n } from 'vue-i18n';
44
import { useRoute } from 'vue-router';
55
import { StandardFooter } from '@thunderbirdops/services-ui';
6+
import { TERMS_OF_SERVICE_URL, PRIVACY_POLICY_URL } from '@/defines';
67
78
const { t } = useI18n();
89
@@ -71,15 +72,15 @@ const logoSrc = computed(() => {
7172
</template>
7273

7374
<template #privacyPolicy>
74-
<router-link to="/privacy">
75+
<a :href="PRIVACY_POLICY_URL" target="_blank">
7576
{{ t('footer.privacyPolicy') }}
76-
</router-link>
77+
</a>
7778
</template>
7879

7980
<template #legal>
80-
<router-link to="/terms">
81+
<a :href="TERMS_OF_SERVICE_URL" target="_blank">
8182
{{ t('footer.legal') }}
82-
</router-link>
83+
</a>
8384
</template>
8485
</standard-footer>
8586
</template>

assets/app/vue/defines.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ export const WHAT_IS_SMTP_SUPPORT_URL = 'https://support.tb.pro/hc/articles/4610
66
export const DOWNLOAD_THUNDERBIRD_DESKTOP_URL = 'https://www.thunderbird.net/thunderbird/all?utm_campaign=main&utm_medium=tb_pro&utm_source=thundermail_dashboard&utm_content=desktop_download';
77
export const DOWNLOAD_THUNDERBIRD_MOBILE_URL = 'https://play.google.com/store/apps/details?id=net.thunderbird.android&referrer=utm_campaign%3Dmain%26utm_medium%3Dtb_pro%26utm_source%3Dthundermail_dashboard%26utm_content%3Dmobile_download';
88
export const IOS_SUPPORT_URL = 'https://support.tb.pro/hc/en-us/articles/51053665815827-Setting-Up-Thundermail-on-iOS';
9-
export const STATUS_PAGE_URL = 'https://status.tb.pro/';
9+
export const STATUS_PAGE_URL = 'https://status.tb.pro/';
10+
export const TERMS_OF_SERVICE_URL = 'https://tb.pro/terms/';
11+
export const PRIVACY_POLICY_URL = 'https://tb.pro/privacy/';

assets/app/vue/router.ts

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';
44
import DashboardView from '@/views/DashboardView/index.vue';
55
import ManageMfaView from '@/views/ManageMfaView/index.vue';
66
import PrivacyAndDataView from '@/views/PrivacyAndDataView.vue';
7-
import PrivacyView from '@/views/PrivacyView.vue';
87
import SubscribeView from '@/views/SubscribeView/index.vue';
9-
import TermsView from '@/views/TermsView.vue';
108
import TosPrivacyView from '@/views/TosPrivacyView/index.vue';
119

1210
// Thundermail Routes
@@ -87,23 +85,6 @@ const routes: RouteRecordRaw[] = window._page?.isErrorPage ? [
8785
name: 'mail-security-settings',
8886
component: SecuritySettingsView,
8987
},
90-
// Footer links (shared between Accounts and Thundermail)
91-
{
92-
path: '/privacy',
93-
name: 'privacy',
94-
component: PrivacyView,
95-
meta: {
96-
isPublic: true,
97-
},
98-
},
99-
{
100-
path: '/terms',
101-
name: 'terms',
102-
component: TermsView,
103-
meta: {
104-
isPublic: true,
105-
},
106-
},
10788
// Sign Up / Subscribe
10889
{
10990
path: '/subscribe',

assets/app/vue/views/PrivacyView.vue

Lines changed: 0 additions & 6 deletions
This file was deleted.

assets/app/vue/views/TermsView.vue

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)