You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AB Testing works if the controller is on the Controllers folder in root of the project, but when moved to an Area I only ever get the first action to trigger, even if I weight the ratio heavily in favour of the second. I have looked at the other issue, and it's been said that no changes need to be made to the route. So I'm wondering if you can help.
Area Registration:
namespace ABTestProto.Areas.Test
{
public class TestAreaRegistration : AreaRegistration
{
public override string AreaName
{
get
{
return "Test";
}
}
public override void RegisterArea(AreaRegistrationContext context)
{
context.MapRoute(
"Test_default",
"Test/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional }
);
}
}
}
SplitView Controller:
namespace ABTestProto.Areas.Test.Controllers
{
public class AbTestingController : AbTestMasterController
{
[SplitView("Ver1", "Test", "Goal", 0.00001)]
public ActionResult Index()
{
return View();
}
[SplitView("Var2", "Test", "Goal", 0.99999)]
public ActionResult Index2()
{
return View();
}
[SplitGoal("Goal")]
[HttpPost]
public ActionResult Confirm()
{
return View("~/Views/ABTest/Goal.cshtml");
}
}
}
The text was updated successfully, but these errors were encountered:
AB Testing works if the controller is on the Controllers folder in root of the project, but when moved to an Area I only ever get the first action to trigger, even if I weight the ratio heavily in favour of the second. I have looked at the other issue, and it's been said that no changes need to be made to the route. So I'm wondering if you can help.
Area Registration:
SplitView Controller:
The text was updated successfully, but these errors were encountered: