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

Filtering on special chars sends back an un-escaped special character in the links urls #408

Closed
ScottEDubya opened this issue Sep 18, 2018 · 1 comment

Comments

@ScottEDubya
Copy link

Description

When filtering on a special character, the links sent back don't use the encoded characters.
e.g. a GET request to look for a name of "&" /entities?filter[name]=%26 responds with incorrect urls in the links object:
(expected):

"links": {
        "last": "http://localhost:54168/entities?page[size]=50&page[number]=1&filter[name]=%26"
},

(actual):

"links": {
        "last": "http://localhost:54168/entities?page[size]=50&page[number]=1&filter[name]=&"
},

Environment

  • JsonApiDotNetCore Version: 2.4.0
  • Other Relevant Package Versions: n/a?
@bart-degreed
Copy link
Contributor

Fixed in #698.

@maurei maurei closed this as completed Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants