Skip to content

Commit 5ad985f

Browse files
authored
Add redirects for legacy pages [Fixes #236] (#237)
1 parent 8dacca4 commit 5ad985f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/.vuepress/enhanceApp.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
export default ({ router }) => {
2+
// TODO remove once we set up Netlify redirects
3+
router.addRoutes([
4+
{ path: '/foundation/', redirect: '/' },
5+
{ path: '/pdfs/*', redirect: '/' },
6+
{ path: '/brand/', redirect: '/' },
7+
{ path: '/donate/', redirect: '/' },
8+
{ path: '/ether/', redirect: '/use' },
9+
{ path: '/token/', redirect: '/developers' },
10+
{ path: '/build/', redirect: '/developers' },
11+
{ path: '/crowdsale/', redirect: '/developers' },
12+
{ path: '/dao/', redirect: '/developers' },
13+
{ path: '/cli/', redirect: '/developers' },
14+
{ path: '/greeter/', redirect: '/developers' },
15+
])
16+
}

0 commit comments

Comments
 (0)