I am trying to add two routes in the RouteProvider:
routes.MapLocalizedRoute("AddQuantity",
"shoppingcart/addquantitytoproduct/{productId}",
new { controller = "ShoppingCart", action = "AddQuantityToProduct", productId =
UrlParameter.Optional },
new[] { "Nop.Web.Controllers" });
routes.MapLocalizedRoute("RemoveQuantity",
"shoppingcart/removequantityfromproduct/{productId}",
new { controller = "ShoppingCart", action = "RemoveQuantityFromProduct", productId =
UrlParameter.Optional },
new[] { "Nop.Web.Controllers" });
This is working in Visual Studio 2010 SP1, but not on the server. Why?
(Background:
I am building an Ajax-shoppingcart. In this shoppingcart I am using Ajax.ActionLink to get links where I can add or remove products directly in the cart. In VisualStudio I get a link like this:
/shoppingcart/addquantitytoproduct/16
On the server I get a link like this:
/shoppingcart/addquantitytoproduct?productId=16
/Johan Davidsson