Looks like I'm about to do something weird again...
The situation:
public ExperimentAttribute
{
public override void OnActionExecuted (ActionExecutingContext filterContext)
{
filterContext.Result =
new RedirectToRouteResult (
new RouteValueDictionary (new { Action = "Action2", Controller = "Experiment" }));
}
}
public ExperimentController
{
[Experiment]
public ActionResult ExperimentEntryPoint ()
{
RedirectToAction ("Action1", "Experiment");
}
public ActionResult Action1 ()
{
/* ... */
}
public ActionResult Action2 ()
{
/* ... */
}
}
So, which redirect will take place? The one in controller action, the one in ActionFilter or maybe both?