Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base URL #212

Closed
laggingreflex opened this issue Jul 14, 2017 · 1 comment
Closed

base URL #212

laggingreflex opened this issue Jul 14, 2017 · 1 comment

Comments

@laggingreflex
Copy link

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">
@developit
Copy link
Member

I believe this was working in #100 / #138.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants