Skip to content

Migration from jquery.ajax $.ajaxSettings.traditional = true. How remove [] from params #625

Description

@rafaelpereznajera

Migrating from jquery ajax to ember-fetch:

When the app sends queryParams that is type: 'array'.
For example: b = [ 1 , 2 , 3 ]
In jquery ajax settings when traditional = true -> b=1&b=2&b=3
In jquery ajax settings when traditional = false -> b[]=1&b[]=2&b[]=3

In ember-fetch, there is no option traditional = true, always send params with []

Is there an option that I am missing ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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