Redirecting to a url with paths after login

How to redirect to a url like 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 only.

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

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