With FormsAuthentication, when a user navigates to a default route like “/Home/Index” and authentication is needed, then the MVC framework redirects the user to the login route (like “/Account/Login”) and appends the URL encoded “/Home/Index” as a query string to the login url.
Account controller’s Login action is parameterized with “string ReturnUrl” and this is used to redirect the user upon successful login to the original request.
“/Home/Index” could be anything, like “/Products/Detail/1”. In any case, this used to work flawlessly.
I seem to have lost this feature after implementing okta based auth.
Is there a way to get this back along with okta auth?