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',
to: '/buttons/button-groups'
},
{
_name: 'CNavItem',
name: 'Brand Buttons',
to: '/buttons/brand-buttons'
}
// {
// _name: 'CNavItem',
// name: 'Brand Buttons',
// to: '/buttons/brand-buttons'
// }
]
},
// {
+12 -1
View File
@@ -22,6 +22,11 @@ const routes = [
component: () =>
import(/* webpackChunkName: "dashboard" */ "@/views/Dashboard.vue"),
},
{
path: "/theme",
name: "Theme",
redirect: "/theme/typography"
},
{
path: "/theme/colors",
name: "Colors",
@@ -40,6 +45,7 @@ const routes = [
return h(resolveComponent('router-view'))
}
},
redirect: '/base/breadcrumbs',
children: [
{
path: "/base/breadcrumbs",
@@ -136,6 +142,7 @@ const routes = [
return h(resolveComponent('router-view'))
}
},
redirect: '/buttons/standard-buttons',
children: [
{
path: "/buttons/standard-buttons",
@@ -152,11 +159,13 @@ const routes = [
name: "Button Groups",
component: () => import("@/views/buttons/ButtonGroups.vue"),
},
/*
{
path: "/buttons/brand-buttons",
name: "Brand Buttons",
component: () => import("@/views/buttons/BrandButtons.vue"),
},
},
*/
]
},
{
@@ -167,6 +176,7 @@ const routes = [
return h(resolveComponent('router-view'))
}
},
redirect: '/icons/coreui-icons',
children: [
{
path: "/icons/coreui-icons",
@@ -193,6 +203,7 @@ const routes = [
return h(resolveComponent('router-view'))
}
},
redirect: '/notifications/alerts',
children: [
{
path: "/notifications/alerts",