diff --git a/modules/match.js b/modules/match.js index c3055c546e..b59be9a2d4 100644 --- a/modules/match.js +++ b/modules/match.js @@ -20,7 +20,7 @@ function match({ history, routes, location, ...options }, callback) { 'match needs a history or a location' ) - history = history ? history : createMemoryHistory(options) + history = history || createMemoryHistory({ entries: [ location ], ...options }) const transitionManager = createTransitionManager( history, createRoutes(routes)