-
Notifications
You must be signed in to change notification settings - Fork 436
/
Copy pathrouter.js
45 lines (44 loc) · 1.16 KB
/
router.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { createRouter, createWebHistory } from 'vue-router'
export default createRouter({
history: createWebHistory(),
routes: [
// ---------------------------------------------------------
// MEETING
// ---------------------------------------------------------
{
name: 'agenda',
path: '/meeting/:meetingNumber(\\d+)?/agenda',
component: () => import('./agenda/Agenda.vue'),
meta: {
hideLeftMenu: true
}
},
{
name: 'floor-plan',
path: '/meeting/:meetingNumber(\\d+)?/floor-plan',
component: () => import('./agenda/FloorPlan.vue'),
meta: {
hideLeftMenu: true
}
},
// -> Redirects
{
path: '/meeting/:meetingNumber(\\d+)?/agenda.html',
redirect: to => {
return { name: 'agenda' }
}
},
{
path: '/meeting/:meetingNumber(\\d+)?/agenda-utc',
redirect: to => {
return { name: 'agenda', query: { ...to.query, tz: 'UTC' } }
}
},
{
path: '/meeting/:meetingNumber(\\d+)?/agenda/personalize',
redirect: to => {
return { name: 'agenda', query: { ...to.query, pick: true } }
}
}
]
})