Routing problem

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
Hello,

Here is targeted registered route:

routes.MapLocalizedRoute("AddProductToCart-Catalog",
                            "addproducttocart/catalog/{productId}/{shoppingCartTypeId}/{quantity}",
                            new { controller = "ShoppingCart", action = "AddProductToCart_Catalog" },
                            new { productId = @"\d+", shoppingCartTypeId = @"\d+", quantity = @"\d+" },
                            new[] { "Nop.Web.Controllers" });

This url is not catched:

/be/addproducttocart/catalog/54/1/1

What did i miss up?
9 years ago
try

var route = routes.MapLocalizedRoute("AddProductToCart-Catalog",
                            "addproducttocart/catalog/{productId}/{shoppingCartTypeId}/{quantity}",
                            new { controller = "ShoppingCart", action = "AddProductToCart_Catalog" },
                            new { productId = @"\d+", shoppingCartTypeId = @"\d+", quantity = @"\d+" },
                            new[] { "Nop.Web.Controllers" });

  routes.Remove(route);
  routes.Insert(0, route);
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.