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

Parameter fields "space" gets replaced by "+" #156

Open
robertvanlienden opened this issue Dec 8, 2022 · 2 comments
Open

Parameter fields "space" gets replaced by "+" #156

robertvanlienden opened this issue Dec 8, 2022 · 2 comments

Comments

@robertvanlienden
Copy link

When using an TextField inside parameterFields, after submitting your search, spaces are getting replaced by + icons.

See the screenshot below for some "example";
Silversrtripe-report-issue

Simple work-around is to use str_replace("+", " ", $params['Param']) to replace the +'. But this is not ideal (and confusing for end-users).

Also experiencing this issue when searching for an member with SilverstripeMFA report; https://github.com/silverstripe/silverstripe-mfa/blob/4/src/Report/EnabledMembers.php

@dhensby
Copy link
Contributor

dhensby commented Dec 8, 2022

Sounds like the input is either being double url encoded by the server or not url decoded in the frontend

@robertvanlienden
Copy link
Author

@dhensby Also thinking in this direction.

Good to know; If I replace the + (%2B) in the URL by (%20), everything works fine.
But when pressing "filter" again, the space again gets replaced.

Need to investigate some further to see where the space gets replaced...

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

No branches or pull requests

3 participants