Skip to content
Permalink
Browse files

Add route redirects for old docs links (#1489)

Add route redirects for old docs links
  • Loading branch information...
jlowin committed Sep 11, 2019
2 parents 2ebf197 + 7395dca commit 7995fa9a37fdce93087de4cd6cc7763dbf81e3fe
Showing with 10 additions and 0 deletions.
  1. +10 −0 docs/.vuepress/enhanceApp.js
@@ -0,0 +1,10 @@
export default ({ router }) => {
router.addRoutes([
// redirect from `guide/core_concepts` to `core/concepts`
{path: '/guide/core_concepts/*', redirect: '/core/concepts/*'},
// redirect any other `/guide` route to a `/core` route
{ path: '/guide/*', redirect: '/core/*' },
// redirect from `cloud/cloud_concepts` to `cloud/concepts`
{path: '/cloud/cloud_concepts/*', redirect: '/cloud/concepts/*'}
])
}

0 comments on commit 7995fa9

Please sign in to comment.
You can’t perform that action at this time.