From 0a8927b9aa18f9d09e732c54b75de433aaed182c Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Wed, 11 Sep 2019 10:00:59 -0400 Subject: [PATCH] Add route redirects for old links --- docs/.vuepress/enhanceApp.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/.vuepress/enhanceApp.js diff --git a/docs/.vuepress/enhanceApp.js b/docs/.vuepress/enhanceApp.js new file mode 100644 index 000000000000..7ef8e44018f2 --- /dev/null +++ b/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/*'} + ]) +}