Question: I'm trying to handle unmatched routes in my app by having them redirect to the login screen, I've set my routes up like so:

```
<Switch>
{
    session.IsLoggedIn === false &&
    <Container fluid className="d-flex flex-column h-100">
        <Route exact path="/" component={ Login } />
        <Route path="/ResetPassword/:token" component={ ResetPassword } />      
        <Redirect to="/" />
    </Container>
}
</Switch>

```

With this setup though, even if I enter a legitimate route, i.e `/ResetPassword/3245924`, it still redirects to the login screen.

Note: I've gotten the above setup by following this tutorial: <https://www.surajsharma.net/blog/react-router-default-route>

How would I ensure that the legitimate routes are hit while redirecting on non handled routes?

Answer: 
The migration from Bootstrap 3 to Bootstrap 5 is a huge change, since Bootstrap 3 has been around since 2013.

I do not think there is an easy way to convert Bootstrap 3 to Bootstrap 5, due to many major changes and additions.

However, I would suggest you to go through the migration guides for more enlightenment.

I have found a tool online to convert BS3 to BS4 however I don't think there's one to convert to 5.

BS3 to BS4 converter tool: <https://www.prepbootstrap.com/converter>

Official bootstrap documentation for migration:

[BS3 to BS4](https://getbootstrap.com/docs/4.0/migration)

[BS4 to BS5](https://getbootstrap.com/docs/5.0/migration)
Try to delete your cache on your browser.