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 doesn't work with values containing + (plus) #216

Open
timwis opened this issue Mar 12, 2018 · 0 comments
Open

Filtering doesn't work with values containing + (plus) #216

timwis opened this issue Mar 12, 2018 · 0 comments
Labels

Comments

@timwis
Copy link
Owner

timwis commented Mar 12, 2018

When a value contains a plus, ie. Foo + Bar or 60+ and you click that bar, the filtering of the other charts doesn't work because the URL passed to carto encodes everything except the plus, ie. age_range%20=%20%2760+%27. Carto then interprets the + as a space.

https://phl.carto.com/api/v2/sql?q=SELECT%20*%20FROM%20pdp_state_releases_age_range%20WHERE%20(age_range%20=%20%2760+%27)%20ORDER%20BY%20date_of_release%20desc%20%20LIMIT%2010

I think the issue is with how jQuery's .ajax() function encodes the URI of the querystring. I think it's limited to + but this may affect other URL-reserved characters as well.

@timwis timwis added the bug label Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant