# Redirect URL (to app) - after the action is done successfully

**URL:** <https://forum.keycloak.org/t/redirect-url-to-app-after-the-action-is-done-successfully/19818>\
**Category:** Getting advice\
**Created:** [January 23, 2023, 11:24pm UTC](https://forum.keycloak.org/t/redirect-url-to-app-after-the-action-is-done-successfully/19818 "2023-01-23T23:24:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Virtnet](https://avatars.discourse-cdn.com/v4/letter/v/f9ae1b/32.png) [@Virtnet](https://forum.keycloak.org/u/Virtnet)\
**Post date:** [January 23, 2023, 11:24pm UTC](https://forum.keycloak.org/t/redirect-url-to-app-after-the-action-is-done-successfully/19818/1 "2023-01-23T23:24:22Z")

</div>

The application is written in Flutter, using the plugin flutter\_appauth (in order to communicate with OAuth 2.0 and OpenID Connect).  
Looks to me that everything is defined , the clientId, baseurl, realms, the redirect URI, i’m able to login, logout.  
But now i’m trying to implement a way to give the user the ability to remove it self from the system.  
According to this :

> <https://github.com/keycloak/keycloak-community/blob/main/design/application-initiated-actions.md#flows>

I can use this stracture of link to give the user the ability to remove it self from Keycloak. (And it’s working!) I have chnaged the action “update\_profile” to “delete\_account”.  
When I already logged, when I invoke the function that opens the address  
${keycloakBaseUrl}protocol/openid-connect/auth?response\_type=code&client\_id=${keycloakClientId}&redirect\_uri=${keycloakRedirectURI}&kc\_action=delete\_account"

I have to login again (which is normal), after it redericts me to the pgae to confirm deletion, after it removes the user,it says “user deleted successfully” but not redericts me back to the app as it should be. (in login it’s redirects back to the app )

What could be the problem?

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![05.parse\_cassis](https://avatars.discourse-cdn.com/v4/letter/0/ebca7d/32.png) [@05.parse\_cassis](https://forum.keycloak.org/u/05.parse_cassis)\
**Post date:** [June 8, 2024, 4:33pm UTC](https://forum.keycloak.org/t/redirect-url-to-app-after-the-action-is-done-successfully/19818/2 "2024-06-08T16:33:42Z")

</div>

Hello, I have the same issue. How did you resolve it?

Thank you
