# Redirect\_uri is missing from authentication page after failed auth

**URL:** https://forum.keycloak.org/t/redirect-uri-is-missing-from-authentication-page-after-failed-auth/25273
**Category:** Miscellanaeous
**Tags:** authentication
**Created:** [March 27, 2024, 5:10pm UTC](https://forum.keycloak.org/t/redirect-uri-is-missing-from-authentication-page-after-failed-auth/25273 "2024-03-27T17:10:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![blairjanis](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/blairjanis/32/10092_2.png) [@blairjanis](https://forum.keycloak.org/u/blairjanis)
#### Post date: [March 27, 2024, 5:10pm UTC](https://forum.keycloak.org/t/redirect-uri-is-missing-from-authentication-page-after-failed-auth/25273/1 "2024-03-27T17:10:25Z")

</div>

Probably a simple issue but my research has failed to expose the solution. Here is the setup …

I’m using keycloak-angular in an Angular 10 application, using silent redirect authentication checking

Here is the problem:  
User navigates to url and gets redirected to login.  
Login url is https://[keycloak endpoint]/realms/[realm]/protocol/openid-connect/auth?client\_id=[client]&redirect\_uri=[correct redirect uri]  
When user login fails … the browser redirects to:  
https://[keycloak endpoint]/realms/[realm]/login-actions/authenticate?execution=[some uuid]&client\_id=[client]&tab\_id=[some id]

The problem (at least as my rookie eyes see it) is that the redirect\_uri is missing. This is not an issue on the surface because if I then subsequently succeed to log in, I’m properly redirected to the original redirect\_uri. My problem is that I have some custom script in my login theme that relies on the redirect\_uri value to display the correct logo and color scheme.

What I’m hoping to learn:  
Is there a way to preserve the redirect\_uri, or is there some other way to detect where the login will redirect after a successful login so I can preserve the theme scheme?
