# How to add query param to redirect\_uri in a post-login action

**URL:** <https://community.auth0.com/t/how-to-add-query-param-to-redirect-uri-in-a-post-login-action/73168>\
**Category:** Get Help\
**Created:** [November 15, 2021, 4:57pm UTC](https://community.auth0.com/t/how-to-add-query-param-to-redirect-uri-in-a-post-login-action/73168 "2021-11-15T16:57:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trondhindenes](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/trondhindenes/32/6352_2.png) [@trondhindenes](https://community.auth0.com/u/trondhindenes)\
**Post date:** [November 15, 2021, 4:57pm UTC](https://community.auth0.com/t/how-to-add-query-param-to-redirect-uri-in-a-post-login-action/73168/1 "2021-11-15T16:57:09Z")

</div>

Hi,  
We’re trying to add some data to the redirect url where the user gets sent after successful authentication using auth0 “post login” actions.

example:  
in our spa app, we call:

```auto
loginWithRedirect({
            screen_hint: "signUp",
            redirectUri: `https://myapp.domain.com/#/signup-completed`,
        });

```

in the auth0 action, I’d like to add a query param so that the user gets redirected to `https://myapp.domain.com#/signup-completed?what=true` after successful login.

The only thing I’ve found in actions is `api.redirect.sendUserTo`. However, this seems to be for use-cases where the action performs a temporary redirect that is expected to send the user back to auth0 to continue the workflow via `onContinuePostLogin`. My use case is to manipulate the final redirect where the user gets sent after the entire actions workflow chain completes. Is this possible?

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [November 16, 2021, 10:30pm UTC](https://community.auth0.com/t/how-to-add-query-param-to-redirect-uri-in-a-post-login-action/73168/3 "2021-11-16T22:30:16Z")

</div>

Hi @trondhindenes,

You won’t be able to add a param to the redirect URI in an Action. You can find strategies for redirecting users after login here:

> **[Redirect Users](https://auth0.com/docs/authenticate/login/redirect-users-after-login)**
>
> Describes how to redirect users to URLs that have not been added to the AllowList.

---

<div class="post-metadata">

**Author:** ![jeff0](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeff0/32/30027_2.png) [@jeff0](https://community.auth0.com/u/jeff0)\
**Post date:** [November 17, 2021, 12:51am UTC](https://community.auth0.com/t/how-to-add-query-param-to-redirect-uri-in-a-post-login-action/73168/4 "2021-11-17T00:51:04Z")

</div>

Hi @trondhindenes

This question might help you [Passing data from Action to the consuming client app](https://community.auth0.com/t/passing-data-from-action-to-the-consuming-client-app/72726)

Thanks  
Jeff

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 2, 2021, 12:51am UTC](https://community.auth0.com/t/how-to-add-query-param-to-redirect-uri-in-a-post-login-action/73168/5 "2021-12-02T00:51:06Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
