Skip to content

'&' in remotefilter is not properly URL serialized #307

Description

@lunarmoon26

Version:

2.2.1

Issue:

For example giving the following service call:

Service<Resource>.all({
  remotefilter: {
    field: "foo&bar"
  }
})

The serialized URL will be:

...?filter[field]=foo&bar

which isn't correct. The work around is to manually encrypt the string before passing to the filter. This isn't very robust as the developer may forget to do so

Solution:

URL encrypt the string field (encodeURIComponent) by default and provide an option to override?

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions