aurelia / router

A powerful client-side router.
MIT License
120 stars 115 forks source link

Possible bug in redirecting routes with parameters #607

Closed ormasoftchile closed 6 years ago

ormasoftchile commented 6 years ago

I'm submitting a bug report

Please tell us about your environment:

Current behavior: Up to version 1.5.0 of Aurelia-router I was using this configuration:

[
{ route: 'seguridad-seleccionar-usuario-nuevo', redirect: 'seguridad-seleccionar-usuario/true', nav: true, title: 'Nuevo Usuario' },
{ route: 'seguridad-seleccionar-usuario-modificar', redirect: 'seguridad-seleccionar-usuario/false', nav: true, title: 'Modificar Usuario' },
{ name: 'seguridad-seleccionar-usuario', route: 'seguridad-seleccionar-usuario/:nuevo', moduleId: PLATFORM.moduleName('modulos/herramientas/seguridad/seleccionar-usuario/index', 'herramientas'), nav: false, title: 'Modificar Usuario' }
]

The idea was that the two first routes redirect to the third with different parameters.

After upgrading to 1.6.1, an exception is thrown indicating that the parameter isn't being passed.

Expected/desired behavior:

3cp commented 6 years ago

Is it a child route? If so could be a duplicate of #605.

ormasoftchile commented 6 years ago

They are root level routes. I think it's different from #605 .