# Callback URL missing a folder in the path

**URL:** <https://community.auth0.com/t/callback-url-missing-a-folder-in-the-path/19918>\
**Category:** Get Help\
**Tags:** web, callback-urls\
**Created:** [January 12, 2019, 3:43pm UTC](https://community.auth0.com/t/callback-url-missing-a-folder-in-the-path/19918 "2019-01-12T15:43:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcunningham77](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jcunningham77/32/10404_2.png) [@jcunningham77](https://community.auth0.com/u/jcunningham77)\
**Post date:** [January 12, 2019, 3:43pm UTC](https://community.auth0.com/t/callback-url-missing-a-folder-in-the-path/19918/1 "2019-01-12T15:43:15Z")

</div>

Hello, I am following the regular web flow here:

> **[Authorization Code Flow - Auth0 Docs](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow)**
>
> Learn how the Authorization Code flow works and why you should use it for regular web apps.

And specifically this one:

> **[Call Your API Using the Authorization Code Flow - Auth0 Docs](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow)**
>
> Learn how to call your own API from regular web apps using the Authorization Code Flow.

After step 4, the user authenticates into Twitter, and the Auth0 tenant returns the authorization “code” back to the callback URL.

I have specified the callback URL in my Application Dashboard to be:  
[http://localhost:8081/#!/Admin](http://localhost:8081/#!/Admin)  
However, after the Auth0 dialog disappears, I am sent back to:  
[http://localhost:8081/?code=7sonNBbTEnQssCQM#!/Login](http://localhost:8081/?code=7sonNBbTEnQssCQM#!/Login)

Does anyone know why this is happening, or seen issues with this functionality before?  
\*note - my trial period has expired, but I think this particular flow is a free service.

---

<div class="post-metadata">

**Author:** ![charsleysa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/charsleysa/32/9722_2.png) [@charsleysa](https://community.auth0.com/u/charsleysa)\
**Post date:** [January 14, 2019, 12:47am UTC](https://community.auth0.com/t/callback-url-missing-a-folder-in-the-path/19918/2 "2019-01-14T00:47:18Z")

</div>

Hi @jcunningham77

You have been following the Regular Web App tutorials but from looking at your URL it looks like you are building an SPA.

If that’s the case then I would recommend following these tutorials instead:

> **[Authorization Code Flow with Proof Key for Code Exchange (PKCE)](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-proof-key-for-code-exchange-pkce)**
>
> Learn how the Authorization Code flow with Proof Key for Code Exchange (PKCE) works and why you should use it for native and mobile apps.

> **[Implicit Flow with Form Post](https://auth0.com/docs/get-started/authentication-and-authorization-flow/implicit-flow-with-form-post)**
>
> Learn how the Implicit flow with Form Post works and why you should use it for traditional web apps that need only an ID Token to perform user authentication.

---

<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:** [August 29, 2019, 9:30am UTC](https://community.auth0.com/t/callback-url-missing-a-folder-in-the-path/19918/3 "2019-08-29T09:30:20Z")

</div>

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