I'm trying to implement ForgetPassword component. My routing for app:
  const {user} = useSelector(state => state.user)
  return( 
    <Switch>
      <Route exact path={'/app/login'} component={Login} />
      <Route exact path={'/app/forget'} component={ForgetPassword} />
      <Route exact path={'/api/auth/password/reset/:id/:token/'} component={ResetPassword} />
      {user ? (<>
        <Switch>
          <Route exact path={'/app/profile'} component={Profile} />
          <Route exact path={'/app/bar'} component={Bar} />
          {user && (<Redirect exact from='/' to='/app/bar' />)}
        </Switch>
      </>) : <Redirect to='/app/login' />}
    </Switch>
  )
Component ResetPassword uses useParams to get parameters from url, which are needed for reset password process. When you send your email, you'll get reset link for password. Link looks like: https://someaddress.com/api/auth/password/reset/MzY/5ec-61a27a7043e37320bfd1/
I'm using react-router-dom 5.1
Expected behaviour: After clicking reset link app should redirect into ResetPassword component with params.
Current behaviour: After clicking link it redirects into '/app/login'.
I've tried to change paths with no exact. It doesn't work. It works only if I paste part api/auth/password/reset/MzY/5ec-61a27a7043e37320bfd1/ to localhost. On server it redirects into /app/login
How it should be handled with react-router-dom?
