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:
parent
69dae2d216
commit
7fd711df54
|
|
@ -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>
|
||||
Loading…
Reference in New Issue