# Redirecting to a url with paths after login

**URL:** <https://community.auth0.com/t/redirecting-to-a-url-with-paths-after-login/44298>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [June 8, 2020, 3:17pm UTC](https://community.auth0.com/t/redirecting-to-a-url-with-paths-after-login/44298 "2020-06-08T15:17:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hex.nanotech](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hex.nanotech/32/21786_2.png) [@hex.nanotech](https://community.auth0.com/u/hex.nanotech)\
**Post date:** [June 8, 2020, 3:17pm UTC](https://community.auth0.com/t/redirecting-to-a-url-with-paths-after-login/44298/1 "2020-06-08T15:17:08Z")

</div>

How to redirect to a url like [http://example.com/foo/bar](http://example.com/foo/bar) after login?

I tried changing the `redirect_url` in my angular app like this:

```
auth0Client$ = (from(
    createAuth0Client({
      domain: "dev-xxxx.auth0.com",
      client_id: "yyyt8xxxuEIQEYhHLwPWdazzz0tdSq",
      redirect_uri: `${window.location.origin}/foo/bar`
    })
  )

```

But it would redirtect to [http://example.com/bar](http://example.com/bar) only.

---

<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:** [June 9, 2020, 8:02pm UTC](https://community.auth0.com/t/redirecting-to-a-url-with-paths-after-login/44298/3 "2020-06-09T20:02:12Z")

</div>

Hi @hex.nanotech,

Welcome to the Community!

Have you set up your allowed callback URLs? This in combination with the redirect uri should determine where you are redirected after a successful login. Also, make sure you are not setting a different redirect url when you are calling whatever login method you are using.

Let me know if that solves it.  
Dan

---

<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:** [June 24, 2020, 12:02am UTC](https://community.auth0.com/t/redirecting-to-a-url-with-paths-after-login/44298/4 "2020-06-24T00:02:13Z")

</div>

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