[Solved] RedirectToAction doesn’t work but hits the breakpoint of the targeted action method [closed]


According to your screenshot these requests are being made via AJAX. AJAX is specifically used not to reload the page. And, as such, it won’t automatically follow redirects or update the browser UI in any meaningful way.

Either don’t use AJAX for the request (since you want the page context to reload anyway), or you can use AJAX and issue your redirect in client-side code upon completion of the request.

1

solved RedirectToAction doesn’t work but hits the breakpoint of the targeted action method [closed]