Auth0 Redirect - React Router - Dynamic /:id not working

Hey There,

I am using the react router, auth0 Login example, but notice there is a huge problem with it.

Say you make a privateroute, as /profile is in the example:

<Container className="flex-grow-1 mt-5">
            <Route path="/" exact component={Home} />
            <PrivateRoute path="/profile/:id" component={Profile} />
            <PrivateRoute path="/dog" component={Profile} />

If you are to go to /profile/cat and then login, the redirect from auth0 will push /profile/:id in the url, and not /profile/cat. This means the redirect itself is broken from auth0 and not pushing the correct targetUrl to react router.

Has anyone solved this problem before?!