Skip to content

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

@rafaelpereznajera

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 ?

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