urgent-maroonU
Refine3y ago
8 replies
urgent-maroon

possible to use refine layout/router within existing project?

Hi, is it possible to use the refine routing and/or layout within an existing project?

I attempted this, but was having issues with the routes and links not working within an existing set of react router routes. The routes didn't appear to show relative to being within an existing set of routes.

For example, if I have an existing route of /app/admin-view and wanted refine to start at this view and allow me to have /app/admin-view/projects where projects was a resource defined with refine, how could I accomplish this? For my existing application, this type of route does not appear to show up, and the navigation provided by refine automatically tries to make every link an absolute link, so I end up with links directing to /projects instead of /app/admin-view/projects. React-router has relative linking support out of the box, so I'm confused as to why this happens this way.

The actual UI layout also wasn't working by laying itself out within its container, but that is not as big of an issue.

Any suggestions/tips for how this should work? Thank you.
Was this page helpful?