troch / route-node

A package to create a tree of named routes
MIT License
20 stars 15 forks source link

Deeply nested '/' path doesn't work without optional parameters #5

Closed klimashkin closed 8 years ago

klimashkin commented 8 years ago
{
  name: 'app', path: '?:showVersion', children: [
    {name: 'admin', path: '/admin', children: [
      {name: 'users', path: '/?:sort?:page'},
    ]},
}

If urls is /admin/?page=1 transitionPath(...).toActivate returns ['app', 'app.admin', 'app.admin.users']

But if url is /admin/ transitionPath(...).toActivate returns only ['app', 'app.admin']

(strictQueryParams : false)

troch commented 8 years ago

Fixed with version 1.5.1, router5 updated to v4.2.2