Skip to content

_array_ queryParam converted to _string_ after transitionTo #13591

@arturkot

Description

@arturkot

Hi,

a demo: https://ember-twiddle.com/650b6fb3657bf037a40170f3b1e74b84

Steps to reproduce (here's a quick video: https://v.usetapes.com/V0vlZepqbw):

  1. Use "My Route!" link.
  2. Click either "Set array" or "Set all" to update the array parameter.
  3. The array parameter is now a string (and should remain an array).

Notes:

  • "my-route" route uses application controller controllerName: 'application' to access query parameters from the parent route/controller.
  • When you comment out this.transitionTo('application') setting parameters will work as expected (array parameter remains an array).
  • "reset params" sets an empty array and that doesn't trigger the error.
  • I've noticed the error after updating from Ember 2.4.1 to 2.4.5. I can confirm that 2.4.1 doesn't have this error.

Thanks,

Artur

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions