Closed
Description
I'm trying to use redux-first-router in a create-react-app app that specifies a homepage
in package.json
since the app won't be hosted at the root of the site. From what I can tell, it looks like I'll have to include that route prefix for each entry in my routesMap
. I've been looking through the RFR source to see if there's a way to pass a basename
(or similar) option that would allow the pathname
to be enhanced if that option exists but it doesn't look like it's possible at the moment.
Is there currently a way to use RFR when an app isn't going to run at the root of a site? If not, is it reasonable to request the ability to specify a basename
- perhaps in the options passed to connectRoutes
?
Metadata
Metadata
Assignees
Labels
No labels