Html.ActionLink generating an incorrect url when trying to generate a link to a different controller + action.

Adding a work around with information of a corresponding bug. The work around will go away once we have a fix.
This commit is contained in:
Praburaj 2014-04-15 12:11:05 -07:00
parent 69dae2d216
commit 7fd711df54
1 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,8 @@
@Html.ValueFor(model => model.Price)
</p>
<p class="button">
@Html.ActionLink("Add to cart", "AddToCart",
"ShoppingCart", new { id = Model.AlbumId })
@*https://github.com/aspnet/WebFx/issues/246*@
@*@Html.ActionLink("Add to cart", "AddToCart", "ShoppingCart", new { id = Model.AlbumId })*@
<a href="@Url.Action("AddToCart", "ShoppingCart", new { id = Model.AlbumId })">Add to cart</a>
</p>
</div>