-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
location="history" and starting from child route #110
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
Comments
Something is probably wrong with your app or server. http://github.com/rpflorence/react-boilerplate uses history location and works just fine. Maybe try your app in that boilerplate code and see? |
closing, please reopen if you are still having problems :) |
Sorry for the delay in responding. I figured out what's happening... Here's my route: Notice the If I change the route Not sure if that's intended or not, but it did trip me up. My vote would be to optionally match the trailing slash. |
It's also an issue if no |
When I refresh that route manually in Chrome, it changes the path to /accounts/ @jstayton It sounds like your server might be setup to redirect |
Since servers do not match this by default neither do we. Here's another case for regex paths. Sent from my iPhone
|
Yep, you're right, that's what's happening. I think it would great if you could do something like |
Hey guys,
When I have
location="history"
set on my root route, everything works as expected if I start by loading the root path. I can click<Link />
elements and other routes render without issue.But if I start by loading a child path like
/users
, the handler for that route never fires. Only the root route handler (App
) is rendered. There are no console warnings/errors either.This doesn't appear to be an issue with the default,
hash
.The text was updated successfully, but these errors were encountered: