Linking to other resources
I'll explain this with the API URLs directly, as it will be easier for me, I have multiple resources, let's call the first one "category". When a user selects a specific category, I'd like for the user to be redirected to the second resource, "manufacturer" with a filter: /manufacturer?category=1. When a user selects a specific manufacturer, the user gets redirected to "device", /category?category=1&manufacturer=1.
Is that something that refine.dev can do well, and if so, is there specific documentation that can help understand where to start ? Thank you very much !
2 Replies
Hi, I am refine support bot :wave:. I am here to help you with your question. I searched for the answer to your question in the refine documentation and found an answer! 🏆
Answer: Refine.dev can do well what is asked, and there is specific documentation that can help understand where to start. SOURCES: ./docs/getting-started/quickstart.md, ./docs/tutorial/4-adding-crud-pages/mui/add-show-page.md, ./docs/tutorial/4-adding-crud-pages/mantine/add-show-page.md, ./docs/tutorial/3-understanding-resources/0-intro.md
Answer: Refine.dev can do well what is asked, and there is specific documentation that can help understand where to start. SOURCES: ./docs/getting-started/quickstart.md, ./docs/tutorial/4-adding-crud-pages/mui/add-show-page.md, ./docs/tutorial/4-adding-crud-pages/mantine/add-show-page.md, ./docs/tutorial/3-understanding-resources/0-intro.md
Note: If this is the answer you need, then we are very lucky. If not, please wait for someone from the refine core team or the community to try to help you.
robust-apricot•2y ago
Hey @thesavagecanadian,
We have a few examples of this. We call it "Multitenancy", you can see an advanced tutorial here:
https://refine.dev/docs/advanced-tutorials/multi-tenancy/appwrite/
I hope this helps!
Btw, You should handle the redirection manually, for example, if you use
useForm
hook, you should set redirect
to false
. Then, you can redirect the user using useNavigation
hook with onSuccess
callback.