reactivesearch icon indicating copy to clipboard operation
reactivesearch copied to clipboard

[Question] Is it possible to remove Double-Quotes from URL when selecting any Filter?

Open faizansaiyed opened this issue 8 years ago • 12 comments

Issue Type: Question

Platform: Web

Description: Is there any way to remove Double Quotes from URL when selecting any filter and also Reactive Search to work properly?

Reactivesearch version: 2.0.0

Browser: All

faizansaiyed avatar Apr 25 '18 04:04 faizansaiyed

I guess so, we do it to cover all use-cases in one go - by Stringify-ing everything. We can however, check if the value's type is already a string then skip it - here.

Open to PRs if you want to take this up!

metagrover avatar Apr 25 '18 06:04 metagrover

Hello @metagrover , I try this solution remove JSON.stringify in URLParamsProvider.js but still i face the problem like, 1st time query is work http://localhost:8001/?SearchSensor=pen but, when i refresh the page query not working but URL is same.

so how can i slove this problem with refresh the page query also work properly according to URL ?

ashwini987 avatar Jul 02 '18 08:07 ashwini987

Seems like a parsing issue to me. Can you check what value is getting set for the SearchSensor in the selectedValues of the redux-store?

metagrover avatar Jul 02 '18 09:07 metagrover

sorry i m not getting

ashwini987 avatar Jul 02 '18 09:07 ashwini987

This the screensort redux-store2

ashwini987 avatar Jul 04 '18 06:07 ashwini987

@ashwini987 this seems to be working. Are you facing any issues?

metagrover avatar Jul 04 '18 06:07 metagrover

1st time query is work http://localhost:8001/?SearchSensor=pen but, when i refresh the page query not working but URL is same. this issue i m facing.

ashwini987 avatar Jul 04 '18 06:07 ashwini987

What value do you get in the selectedValue prop of CategorySearch after you refresh?

metagrover avatar Jul 04 '18 06:07 metagrover

null

ashwini987 avatar Jul 04 '18 08:07 ashwini987

That's because it's not getting parsed correctly from the URL now.

You may have to get rid of JSON.parse from here now.

metagrover avatar Jul 04 '18 08:07 metagrover

resolve this issue. thank you

ashwini987 avatar Jul 04 '18 11:07 ashwini987

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Aug 06 '19 11:08 stale[bot]