I have problem like link text
All of my links look like this: htp//site/controller/action/id
I just added Area called BackEnd.
My Controller:
[ActionLinkArea("")]
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
}
Now when I'm try to get some conroller URL using
@Html.ActionLink<HomeController >(c => c.Index(), "Home")
All works fine, and url is htp://site/HomeController/Index/
But when I use extension method from Microsoft.Web.Mvc.dll
@Html.BuildUrlFromExpression<HomeController>(c => c.Index())
I get URL htp://site/BackEnd/HomeController/Index/
How can I get URL without Area using BuildUrlFromExpression and why ActionLink works fine but BuildUrlFromExpression not?