From 7fd711df54c2e8a3a125b8581e97e2927cdc4e3e Mon Sep 17 00:00:00 2001 From: Praburaj Date: Tue, 15 Apr 2014 12:11:05 -0700 Subject: [PATCH] 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. --- src/MusicStore/Views/Store/Details.cshtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MusicStore/Views/Store/Details.cshtml b/src/MusicStore/Views/Store/Details.cshtml index 41035ccab7..76c77fac20 100644 --- a/src/MusicStore/Views/Store/Details.cshtml +++ b/src/MusicStore/Views/Store/Details.cshtml @@ -26,7 +26,8 @@ @Html.ValueFor(model => model.Price)

- @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 })*@ + Add to cart

\ No newline at end of file