diff --git a/src/router/index.ts b/src/router/index.ts index 4cf6ca1c..8a91650e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -12,7 +12,9 @@ const routes = [ }, { path: '/:lang/editor/:uid', - redirect: '/:lang/editor-metadata/:uid' + redirect: (to: RouteLocationNormalized) => { + return '/' + to.params.lang + '/editor-metadata/' + to.params.uid; + } }, { path: '/:lang/editor-metadata',