Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Thanks David, I stumbled across this and initially think it wasn't very helpful but it ultimately did solve my problem. Essentially, I needed to add virtual to the Logout() action result, which fixed the 404 issue. Hope this at least helps someone else in the future! Here's the correct method signature:
[HttpPost]
[ValidateAntiForgeryToken]
public virtual ActionResult Logout()
{
// Log user out
// Redirect
return Redirect("/");
}
I have the following form being rendered from within a block.
Here's the controller:
When I submit the form, the page 404s and does not actually execute the Logout() method. What am I missing? Should I be approaching this differently?