Skip to content

Commit a1f5a6f

Browse files
committed
Fix browse route params
1 parent ab5bc79 commit a1f5a6f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tekst-Web/src/router.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,23 @@ const router = createRouter({
9494
},
9595
},
9696
{
97-
path: '/texts/:textSlug/browse/:locId',
97+
path: '/texts/:textSlug?/browse/:locId?',
9898
name: 'browse',
9999
component: BrowseView,
100100
props: true,
101101
},
102-
{
103-
path: '/bookmark/:textSlug/:alias',
104-
name: 'bookmark',
105-
component: () => null,
106-
beforeEnter: async (to) => await _resolveBrowseLocation(to.params),
107-
},
108102
{
109103
path: '/browse',
110104
name: 'browseResolve',
111105
component: () => null,
112106
beforeEnter: async (to) => await _resolveBrowseLocation(to.query),
113107
},
108+
{
109+
path: '/bookmark/:textSlug/:alias',
110+
name: 'bookmark',
111+
component: () => null,
112+
beforeEnter: async (to) => await _resolveBrowseLocation(to.params),
113+
},
114114
{
115115
path: '/search',
116116
name: 'search',

0 commit comments

Comments
 (0)