From d226254578d8b3fd1b5bff1a4e5d40e40d3041c7 Mon Sep 17 00:00:00 2001 From: Cyrus Goh Date: Thu, 21 Jan 2021 00:42:42 -0800 Subject: [PATCH] docs: add enhanceApp.js to .vuepress for redirects (#8354) --- docs/.vuepress/enhanceApp.js | 6 ++++++ 1 file changed, 6 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..79974546e9b2 --- /dev/null +++ b/docs/.vuepress/enhanceApp.js @@ -0,0 +1,6 @@ +export default ({ router }) => { + router.addRoutes([ + { path: '/master/spec/*', redirect: '/master/modules/' }, + { path: '/master/spec/governance/', redirect: '/master/modules/gov/' }, + ]) +} \ No newline at end of file