custom-pages

Could you please provide an example??? I have tried push("offerings", "/step1"), push("offerings", "/offer1/step1") , push("/offerings/edit/offer1/step1"), push("/offer1/step1"). None of them working. pls give an example for adding the "/step1" for the existing route "/offerings/edit/offer1"
2 Replies
Omer
Omer2y ago
First you have to create a custom page for this route, https://refine.dev/docs/advanced-tutorials/custom-pages/ then you can redirect like this,
const { push } = useNavigate();
push(`/offerings/edit/offer1/step1`);
const { push } = useNavigate();
push(`/offerings/edit/offer1/step1`);
Custom Pages | refine
This document is related to how to create custom pages for react applications. Since Nextjs and Remix has a file system based router built on the page concept, you can create your custom pages under the pages or routes folder.
rising-crimson
rising-crimson2y ago
@Omer Thank you, seems like it's working