From 3c70b21acbb0ea56d74079c0a7a804f5b57ad92b Mon Sep 17 00:00:00 2001 From: Chaitanya Date: Mon, 16 Sep 2024 19:35:08 +0530 Subject: [PATCH] chore: redirect to snapshot.box for network page on snapshot (#4873) --- src/components/TheFooter.vue | 4 +- src/router/index.ts | 11 +- src/views/Network.vue | 228 ----------------------------------- 3 files changed, 10 insertions(+), 233 deletions(-) delete mode 100644 src/views/Network.vue diff --git a/src/components/TheFooter.vue b/src/components/TheFooter.vue index a01564b2209..8bd277fa791 100644 --- a/src/components/TheFooter.vue +++ b/src/components/TheFooter.vue @@ -14,9 +14,7 @@ const snapshotTextLinks = [ }, { text: 'network-support', - link: { - name: 'network' - } + link: 'https://snapshot.box/#/network' }, { text: 'terms', diff --git a/src/router/index.ts b/src/router/index.ts index f3f8dab9039..6d896852d9d 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,7 +7,6 @@ import SetupView from '@/views/SetupView.vue'; import StrategyView from '@/views/StrategyView.vue'; import TimelineView from '@/views/TimelineView.vue'; import RankingView from '@/views/RankingView.vue'; -import Network from '@/views/Network.vue'; import ProfileView from '@/views/ProfileView.vue'; import ProfileAbout from '@/views/ProfileAbout.vue'; @@ -150,7 +149,15 @@ if (domain) { } } }, - { path: '/network', name: 'network', component: Network }, + { + path: '/network', + component: { + // To redirect existing links to snapshot.box + beforeRouteEnter() { + window.location.href = 'https://snapshot.box/#/network'; + } + } + }, { path: '/terms-and-conditions', name: 'terms-and-conditions', diff --git a/src/views/Network.vue b/src/views/Network.vue deleted file mode 100644 index 9befded49c2..00000000000 --- a/src/views/Network.vue +++ /dev/null @@ -1,228 +0,0 @@ - -