I have a React application that is getting reloaded in a loop when I press the refresh button, I observed the string "&state.." is getting added and removed from the URL in a loop. I am able to reproduce this issue through these steps.
- Open the application in Chrome/Brave (not reproduce able in Edge)
- Login through Keyclock
- verify the token is stored in the cookie
- click on the refresh button on the browser
Dependencies
"react": "17.0.2"
"keycloak-js": "18.0.1"
"react-router-dom": "6.3.0" (using HashRouter)
Keyclock configuration
onLoad: "login-required"
Please do let me know if more information is needed, thanks in advance.