Skip to content

Commit

Permalink
chore: redirect to snapshot.box for network page on snapshot (#4873)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaituVR authored Sep 16, 2024
1 parent 789ae2e commit 3c70b21
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 233 deletions.
4 changes: 1 addition & 3 deletions src/components/TheFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ const snapshotTextLinks = [
},
{
text: 'network-support',
link: {
name: 'network'
}
link: 'https://snapshot.box/#/network'
},
{
text: 'terms',
Expand Down
11 changes: 9 additions & 2 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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',
Expand Down
228 changes: 0 additions & 228 deletions src/views/Network.vue

This file was deleted.

0 comments on commit 3c70b21

Please sign in to comment.