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

chore: redirect to snapshot.box for network page on snapshot #4873

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading