Redirect_uri how does it work?


How does Keycloak know where to redirect after the user logged in.

If i try to access for example:


then keycloak intercepts with its authentication mechanism and after i succesfully entered the user password, keycloak redirects to the /dashboard url.

But how or better where does Keycloak stores this url info.

I debugged the code from Keycloak and it generated such an url after the login mechanism :


but how does Keyclaok then redirect to the proper context.

Thanks for any help