I have a couple of routes setup using Route from react-router-dom.
<Route exact path="/dashboard/search" component={Search} />
<Route exact path="/dashboard/search/:uid/:sid/result" component={Results} />
Problem
The second route mentioned above is something I send to an email as a link. When I click that link. It opens up the link with url as expected but doesn't stay there and takes to the first route. Simply put.
- 2nd route url shows up in address bar.
- Then switches to first route.
As you can see I do have exact prop setup on this. Shouldn't they be differentiated? What could be the problem?
buttonwithin app. On click that page works perfectly fine.