Skip to content

Commit 55ede40

Browse files
tornqvistgoto-bus-stop
authored andcommitted
Exclude all choo routes with partials (#445)
1 parent 89311dd commit 55ede40

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ssr/choo.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ module.exports.is = function (app) {
99

1010
module.exports.listRoutes = function (app) {
1111
var keys = getAllRoutes(app.router.router)
12-
if (keys['/:']) delete keys['/:'] // Server rendering partials is tricky.
13-
return Object.keys(keys)
12+
return Object.keys(keys).filter(function (key) {
13+
return !/\/:/.test(key) // Server rendering partials is tricky.
14+
})
1415
}
1516

1617
// Do a double render pass - the first time around we wait for promises to be

0 commit comments

Comments
 (0)