Version
5.0.0
Test Case
https://codesandbox.io/s/react-router-1pf7h
Steps to reproduce
- Add
<Route> with multiple paths
- Set something that uses the
active prop like activeClassName or activeStyle on <NavLink>
Expected Behavior
Maybe I'm totally off here and misunderstood something fundamental, but in my mind it would make sense that both / and /two in the test case should be active when url is /
Actual Behavior
Only / is active when url is / when both / and /two are set ass paths for the Home component.