genetic-orange•3mo ago
Turn on values encoding during syncWithLoacation option is on.
Is there a quick way to enable values encoding inside stringifyTableParams function which executes while sync with location is on?
3 Replies
Hi @RVM. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Currently, the knowledge sources indicate that refine uses the qs library to stringify filter objects for URL synchronization when syncWithLocation is enabled. There is a known issue where special characters (like +) are not properly encoded, leading to problems when navigating back and forth between pages. The maintainers have acknowledged this and suggested that improvements may be needed in the stringifyTableParams function to address encoding issues. However, there is no explicit documentation or quick configuration option mentioned in the sources to enable or customize value encoding directly within stringifyTableParams at this time.
A possible solution discussed is to enhance stringifyTableParams or provide a parse argument for specifying characters to leave off from the encoding, but this is not yet implemented or documented as a user-facing option. You may need to monitor updates or contribute to the discussion for a more robust solution in future releases Encoded Escape Special Characters in URL before sync filters value with location.
In summary:
There is currently no quick, documented way to enable or customize value encoding inside stringifyTableParams while syncWithLocation is on. The issue is recognized, and improvements may be made in the future, but for now, you may need to implement a workaround or follow updates from the refine team. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
There is currently no quick, documented way to enable or customize value encoding inside stringifyTableParams while syncWithLocation is on. The issue is recognized, and improvements may be made in the future, but for now, you may need to implement a workaround or follow updates from the refine team. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
<@1385573256165068871> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
genetic-orangeOP•3mo ago
There is wrong strignify config in https://github.com/refinedev/refine/blob/main/packages/react-router/src/bindings.tsx
encodeValuesOnly: true - flag is realy applied, when encode: true provided or skipped (enabled by default)
GitHub
refine/packages/react-router/src/bindings.tsx at main · refinedev/...
A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility. - refinedev/refine