Filters error
Hi, how can I use filters from useTable together with special characters (like # for example). When I do not reload the page all queries with this character go correctly, but after reloading I either get a blank field or get 2 filters with the same field
![No description](https://cdn.answeroverflow.com/1207017170152849469/IMG_0134.jpg)
6 Replies
Hi @RomaY. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details about handling special characters like '#' in filters with the
useTable
hook in Refine.
However, you can refer to the Refine documentation (https://refine.dev/docs/ui-integrations/ant-design/hooks/use-table#filtersinitial) for more information on how to use filters with useTable
. If the issue persists, it might be a good idea to raise an issue on the Refine GitHub page (https://github.com/refinedev/refine/issues).
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@538717491908575242> kapa.ai is still learning and improving, please let us know how it did by reacting below
afraid-scarlet•7mo ago
@contributor
Would it be better to track when the page is reloading and just # overwrite it with %23, then after the reload the # symbol will be saved and everything will work correctly (I've already checked)
foreign-sapphire•7mo ago
Hello @RomaY, I reproduced this issue and I can confirm it's a bug.
Can you open a GitHub issue, please? I believe we can keep track of this issue better on the GitHub.
afraid-scarlet•7mo ago
@Alican Erdurmaz This may not be a bug, it's a feature of using special characters in the browser search bar. Maybe I'll just create a new request submitted with the tag
And one more question. Will it be possible to use filters, pagination, and sorting not just to change the current url, but to create a new one so that you can navigate through the browser history?
foreign-sapphire•7mo ago
Unfortunately, this behavior cannot be changed.
Of course, all issues are welcomed 👍