# How to add additional param to url after successful login

**URL:** <https://forum.keycloak.org/t/how-to-add-additional-param-to-url-after-successful-login/13241>\
**Category:** Extending the server\
**Tags:** authentication, oidc\
**Created:** [January 24, 2022, 7:55am UTC](https://forum.keycloak.org/t/how-to-add-additional-param-to-url-after-successful-login/13241 "2022-01-24T07:55:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rafidamr](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rafidamr](https://forum.keycloak.org/u/rafidamr)\
**Post date:** [January 24, 2022, 7:55am UTC](https://forum.keycloak.org/t/how-to-add-additional-param-to-url-after-successful-login/13241/1 "2022-01-24T07:55:09Z")

</div>

After successfully logging in into a Keycloak realm with openid-connect as protocol, with code as response type, Keycloak will redirect the browser into the redirect uri with param `session_state` and `code` (https://{redirect\_uri}/?session\_state={session\_state}&code={code})

How to let Keycloak server add an additional param to the url? is it needed to extend the server?

this question is also asked here [single sign on - How to add additional param to url after successful login - Stack Overflow](https://stackoverflow.com/questions/70797263/how-to-add-additional-param-to-url-after-successful-login)
