# How to add a post-login redirect url?

**URL:** <https://community.auth0.com/t/how-to-add-a-post-login-redirect-url/24323>\
**Category:** Get Help\
**Created:** [April 23, 2019, 2:47pm UTC](https://community.auth0.com/t/how-to-add-a-post-login-redirect-url/24323 "2019-04-23T14:47:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![realtebo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/realtebo/32/13381_2.png) [@realtebo](https://community.auth0.com/u/realtebo)\
**Post date:** [April 23, 2019, 2:47pm UTC](https://community.auth0.com/t/how-to-add-a-post-login-redirect-url/24323/1 "2019-04-23T14:47:17Z")

</div>

**Instructions for SPA webapp are outdated, I think**

Looking at the control panel, I clicked on ‘quick start’ to have a boilerplate to study.

It uses

```
  // Starts the user login flow
  login(customState) {
    webAuth.authorize({
      appState: customState
    });
  }

```

in the auth service, and, in the router

`auth.login({ target: to.path });`

But in the api doc this option is not mentioned at all, and, also, this generates a console warning about appState is not an accepted parameter.

I need, using vue, to simply add a redirect url.

---

<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:** [April 23, 2019, 5:14pm UTC](https://community.auth0.com/t/how-to-add-a-post-login-redirect-url/24323/3 "2019-04-23T17:14:52Z")

</div>

Hi @realtebo and welcome to the Auth0 Community!

I just ran a fresh vue app from our quickstart download to see if I could recreate the issue and did not run into any problems. I can make the app redirect off the callback and it seems to work okay.

A couple of questions:

- Were you logged in when you downloaded the sample application (they come pre configured with client id and require no editing)?
- Did it run okay without modifying anything?
- How are you configuring the redirect?

Thanks,  
Dan

---

<div class="post-metadata">

**Author:** ![realtebo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/realtebo/32/13381_2.png) [@realtebo](https://community.auth0.com/u/realtebo)\
**Post date:** [April 23, 2019, 8:14pm UTC](https://community.auth0.com/t/how-to-add-a-post-login-redirect-url/24323/4 "2019-04-23T20:14:16Z")

</div>

> [@dan.woda](#):
>
> - Were you logged in when you downloaded the sample application (they come pre configured with client id and require no editing)?

Hi, thanks for the reply, but

- Yes, I downloaded the sample application
- It run okay, BUT the default app show (just a flash before redirect to login screen) the same warning
- Yes, all is configured

To reproduce, simply download vue quick start app, then in chrome devtool set network speed to lowest you can. Login, then, after succesfully redirect to demo app, goto [http://localhost:3000/profile](http://localhost:3000/profile) and press Ctrl-F5

You’ll see this.

 ![image](https://global.discourse-cdn.com/auth0/original/2X/0/05fcacfbf48c7b2f3ea1a74824089ed7e2fcb384.png)

---

<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:** [April 24, 2019, 8:08pm UTC](https://community.auth0.com/t/how-to-add-a-post-login-redirect-url/24323/5 "2019-04-24T20:08:47Z")

</div>

I tried to reproduce by following your instructions but I am getting no error. Could you DM me a screen shot of your application settings in the Auth0 dashboard?

---

<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:** [August 15, 2019, 8:05pm UTC](https://community.auth0.com/t/how-to-add-a-post-login-redirect-url/24323/6 "2019-08-15T20:05:32Z")

</div>


