# Asp.net mvc site with lock callbacks back only to root

**URL:** <https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027>\
**Category:** Get Help\
**Tags:** aspnet-mvc, auth0, lock\
**Created:** [December 13, 2018, 4:25am UTC](https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027 "2018-12-13T04:25:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbghone](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mbghone/32/9566_2.png) [@mbghone](https://community.auth0.com/u/mbghone)\
**Post date:** [December 13, 2018, 4:25am UTC](https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027/1 "2018-12-13T04:25:49Z")

</div>

All is working well with my [asp.net](http://asp.net) mvc 5 site. Except in this scenario: when i am logged out and I attempt to navigate to a page within the site (the action on the controller has an [Authorize] annotation). I am redirected and authenticated successfully with Lock11 hosted page. But when I return after successful authentication, I get routed back to the root of the site. Successfully logged in, but not redirected to the page I am trying to navigate to. I am at a loss on how to troubleshoot this. Anyone have any ideas? Btw, no errors are returned. Nor are there any in the F12 browser debugger. Thank you.

---

<div class="post-metadata">

**Author:** ![mbghone](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mbghone/32/9566_2.png) [@mbghone](https://community.auth0.com/u/mbghone)\
**Post date:** [December 13, 2018, 5:14am UTC](https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027/2 "2018-12-13T05:14:31Z")

</div>

Just wanted to add. My project is derived (copied 🙂) from the [Asp.net](http://Asp.net) mvc quick start. Pretty much boiler plate stuff from the example.

---

<div class="post-metadata">

**Author:** ![mbghone](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mbghone/32/9566_2.png) [@mbghone](https://community.auth0.com/u/mbghone)\
**Post date:** [December 13, 2018, 7:41pm UTC](https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027/3 "2018-12-13T19:41:32Z")

</div>

Goof Grief. This posting is in error. My custom ActionFilterAttribute was the problem I created for myself. Please disregard. Apologies.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 14, 2018, 7:45am UTC](https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027/4 "2018-12-14T07:45:49Z")

</div>

No worries @mbghone! Glad you found it 🙂

---

<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:** [January 13, 2019, 7:45am UTC](https://community.auth0.com/t/asp-net-mvc-site-with-lock-callbacks-back-only-to-root/19027/5 "2019-01-13T07:45:50Z")

</div>

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