Skip to content

Commit ab90792

Browse files
list route & alias together to prevent remounting
1 parent 40485c2 commit ab90792

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/routes.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ export const routes = [
3333
path: '/latest',
3434
component: Latest,
3535
},
36-
{
37-
exact: false,
38-
path: '/tz/:id/:collection?',
39-
component: Display,
40-
},
4136
{
4237
exact: false,
4338
path: '/kt/:id',
@@ -104,7 +99,7 @@ export const routes = [
10499
},
105100
{
106101
exact: false,
107-
path: '/:id/:collection?',
102+
path: ['/tz/:id/:collection?', '/:id/:collection?'],
108103
component: Display,
109104
},
110105
]

0 commit comments

Comments
 (0)