Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in redirecting routes with parameters #607

Closed
ormasoftchile opened this issue Jun 28, 2018 · 2 comments · Fixed by #608
Closed

Possible bug in redirecting routes with parameters #607

ormasoftchile opened this issue Jun 28, 2018 · 2 comments · Fixed by #608
Assignees
Labels

Comments

@ormasoftchile
Copy link

ormasoftchile commented Jun 28, 2018

I'm submitting a bug report

  • Library Version:
    1.6.1

Please tell us about your environment:

  • Operating System:
    OSX 10.x

  • Node Version:
    9.11.1

  • NPM Version:
    6.0.0
  • JSPM OR Webpack AND Version
    JSPM 0.16.32 | webpack 2.1.0-beta.17
  • Browser:
    all

  • Language:
    ESNext

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:

  • What is the expected behavior?

  • What is the motivation / use case for changing the behavior?

@3cp
Copy link
Member

3cp commented Jul 1, 2018

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

@ormasoftchile
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants