-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Description
As per #1333, in 1.0.0 the recommended way for handling default routes is like this:
<Router>
<Route component={App}>
<Route path="/" component={DefaultView}/>
<Route path="/eg1" component={View1}/>
{/* ... */}
</Route>
</Router>
But there is an issue with this related to links:
<Link to="/">Home</Link>
<Link to="/eg1">Example1</Link>
When when you are at location /eg1 both of these links will be marked as active, because Link just matches on the url. It should not be possible for 2 sibling routes to be considered active at the same time.
Metadata
Metadata
Assignees
Labels
No labels