fix: add redirects to not existing pages

This commit is contained in:
Marcin Michałek
2021-08-11 12:42:51 +02:00
parent f59c8bfc7e
commit 1fdafee0a1
2 changed files with 17 additions and 6 deletions
+5 -5
View File
@@ -140,11 +140,11 @@ export default [
name: 'Button Groups', name: 'Button Groups',
to: '/buttons/button-groups' to: '/buttons/button-groups'
}, },
{ // {
_name: 'CNavItem', // _name: 'CNavItem',
name: 'Brand Buttons', // name: 'Brand Buttons',
to: '/buttons/brand-buttons' // to: '/buttons/brand-buttons'
} // }
] ]
}, },
// { // {
+11
View File
@@ -22,6 +22,11 @@ const routes = [
component: () => component: () =>
import(/* webpackChunkName: "dashboard" */ "@/views/Dashboard.vue"), import(/* webpackChunkName: "dashboard" */ "@/views/Dashboard.vue"),
}, },
{
path: "/theme",
name: "Theme",
redirect: "/theme/typography"
},
{ {
path: "/theme/colors", path: "/theme/colors",
name: "Colors", name: "Colors",
@@ -40,6 +45,7 @@ const routes = [
return h(resolveComponent('router-view')) return h(resolveComponent('router-view'))
} }
}, },
redirect: '/base/breadcrumbs',
children: [ children: [
{ {
path: "/base/breadcrumbs", path: "/base/breadcrumbs",
@@ -136,6 +142,7 @@ const routes = [
return h(resolveComponent('router-view')) return h(resolveComponent('router-view'))
} }
}, },
redirect: '/buttons/standard-buttons',
children: [ children: [
{ {
path: "/buttons/standard-buttons", path: "/buttons/standard-buttons",
@@ -152,11 +159,13 @@ const routes = [
name: "Button Groups", name: "Button Groups",
component: () => import("@/views/buttons/ButtonGroups.vue"), component: () => import("@/views/buttons/ButtonGroups.vue"),
}, },
/*
{ {
path: "/buttons/brand-buttons", path: "/buttons/brand-buttons",
name: "Brand Buttons", name: "Brand Buttons",
component: () => import("@/views/buttons/BrandButtons.vue"), component: () => import("@/views/buttons/BrandButtons.vue"),
}, },
*/
] ]
}, },
{ {
@@ -167,6 +176,7 @@ const routes = [
return h(resolveComponent('router-view')) return h(resolveComponent('router-view'))
} }
}, },
redirect: '/icons/coreui-icons',
children: [ children: [
{ {
path: "/icons/coreui-icons", path: "/icons/coreui-icons",
@@ -193,6 +203,7 @@ const routes = [
return h(resolveComponent('router-view')) return h(resolveComponent('router-view'))
} }
}, },
redirect: '/notifications/alerts',
children: [ children: [
{ {
path: "/notifications/alerts", path: "/notifications/alerts",