Not found error when I click reload page when routing to different route

Hi Everyone,

I have been encountering an issue with my custom login page, where when I route to a different route in my app for example going from login to register and then click on the reload button, the page goes blank and shows up with ‘Not found’.

This does not happen in the base login route which has the following edited query params attached:

[https://mydefaultapp/login?state=theState&client=theclient&protocol=oauth2&prompt=login&response_type=code&connection=usersdb&scope=openidprofile&redirect_uri=httpsmanage.auth0.comFtesterFcallbackconnectionuserstore]

When I route to different route the query params from auth0 is gone. This leads me to believe the query params needs to stay in order to reload the page?

If anyone has any info on what I am doing wrong please let me know.

We are using React 17 and auth0js