1 min readSep 16, 2020
In file app/routes.tsx file
Routing path for upload should be mentined before routung path for 'Home' and 'Entities.' This is necessary because the routing path for 'Entities' is '/'. Any specific routing like /upload , /abc must be specified before '/'.
Eg.
<PrivateRoute path="/upload" component={Upload} hasAnyAuthorities={[AUTHORITIES.USER]} />
<ErrorBoundaryRoute path="/" exact component={Home} />
<PrivateRoute path="/" component={Entities} hasAnyAuthorities={[AUTHORITIES.USER]} />
Make these changes and your code will work.