Keycloak Query Parameters


I have secured my application by Keycloak and it works as intended. We send users mail for registered users with link (example - when the user clicks on the link they are redirected to the keycloak page user authenticates and navigates to the modified link (

After login, it’s not redirecting to the original url it’s removing query params in the url. Any suggestion or config changes i need to make to include the query params.



For this, there is the state parameter. If storing the params in a server-side session with the session addressed by the state param, you could include the query params directly in the state param value. The state and it value is alwasy passend back to the redirect URL after authentication.