Skip to content

Commit 1fdafee

Browse files
committed
fix: add redirects to not existing pages
1 parent f59c8bf commit 1fdafee

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

src/_nav.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ export default [
140140
name: 'Button Groups',
141141
to: '/buttons/button-groups'
142142
},
143-
{
144-
_name: 'CNavItem',
145-
name: 'Brand Buttons',
146-
to: '/buttons/brand-buttons'
147-
}
143+
// {
144+
// _name: 'CNavItem',
145+
// name: 'Brand Buttons',
146+
// to: '/buttons/brand-buttons'
147+
// }
148148
]
149149
},
150150
// {

src/router/index.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ const routes = [
2222
component: () =>
2323
import(/* webpackChunkName: "dashboard" */ "@/views/Dashboard.vue"),
2424
},
25+
{
26+
path: "/theme",
27+
name: "Theme",
28+
redirect: "/theme/typography"
29+
},
2530
{
2631
path: "/theme/colors",
2732
name: "Colors",
@@ -40,6 +45,7 @@ const routes = [
4045
return h(resolveComponent('router-view'))
4146
}
4247
},
48+
redirect: '/base/breadcrumbs',
4349
children: [
4450
{
4551
path: "/base/breadcrumbs",
@@ -136,6 +142,7 @@ const routes = [
136142
return h(resolveComponent('router-view'))
137143
}
138144
},
145+
redirect: '/buttons/standard-buttons',
139146
children: [
140147
{
141148
path: "/buttons/standard-buttons",
@@ -152,11 +159,13 @@ const routes = [
152159
name: "Button Groups",
153160
component: () => import("@/views/buttons/ButtonGroups.vue"),
154161
},
162+
/*
155163
{
156164
path: "/buttons/brand-buttons",
157165
name: "Brand Buttons",
158166
component: () => import("@/views/buttons/BrandButtons.vue"),
159-
},
167+
},
168+
*/
160169
]
161170
},
162171
{
@@ -167,6 +176,7 @@ const routes = [
167176
return h(resolveComponent('router-view'))
168177
}
169178
},
179+
redirect: '/icons/coreui-icons',
170180
children: [
171181
{
172182
path: "/icons/coreui-icons",
@@ -193,6 +203,7 @@ const routes = [
193203
return h(resolveComponent('router-view'))
194204
}
195205
},
206+
redirect: '/notifications/alerts',
196207
children: [
197208
{
198209
path: "/notifications/alerts",

0 commit comments

Comments
 (0)