Closed
Description
Would be nice to have a base path or root URL option, like this: https://reacttraining.com/react-router/web/api/BrowserRouter/basename-string
basename: string
The base URL for all locations. If your app is served from a sub-directory on your server, you’ll want to set this to the sub-directory. A properly formatted basename should have a leading slash, but no trailing slash.
<BrowserRouter basename="/calendar"/> <Link to="/today"/> // renders <a href="/calendar/today">
Metadata
Metadata
Assignees
Labels
No labels