Is there a way in ASP.NET MVC to generate a url with an Html.helper without specifying the action (and thus routing it to the default action)?
Basically i want a url that outputs {lang}/controller, i.e.: ~/EN/Home
But every html-helper in MVC seems to demand to specify a specific controller action, even
<a href="@Url.Action(null, @Resources.Home">Click here</a>
outputs EN/Home/PartialViewName instead of just EN/Home.... (I am generating it on a partial view)
UPDATE 1:
apparently, the "Index" action doesn't show up in the generated url, ie:
@Html.ActionLink("Click here", "Index", @Resources.Home)
outputs /EN/Home
but if you want to add parameters, the problem remains the same unfortunately. Non of the following output the correct url (ie EN/Home/3)
@Html.ActionLink("Click here", "Index", @Resources.Home, new { id = home.Id }, null)
<a href="@Url.Action(null, @Resources.Home)/@home.Id">Click here</a>
UPDATE 2:
Solved it for now like this:
@Html.ActionLink("Click here", "Index", string.Format(Resources.Home + "/" + home.Id))
but that can't be the only/correct solution for this problem?