Total de postagens:
42
Karma:
326
Ingressou:
30/09/2017
Localização:
Philippines
I saw a lot of routes using "Product" route name, however; I can't find where in nopcommerce is the registered. Url.RouteUrl("Product", new {SeName = Model.SeName}) can anyone share something on where this "Product" route is registered?
Total de postagens:
42
Karma:
676
Ingressou:
18/08/2015
Localização:
India
Good Question. I also want to know this. Thanks
Total de postagens:
42
Karma:
326
Ingressou:
30/09/2017
Localização:
Philippines
thank you... I think that the route mentioned above is related to bellow code in class GenericPathRoute from C:\workspace\trunk\Presentation\Nop.Web.Framework\Seo case "product": { data.Values["controller"] = "Product"; data.Values["action"] = "ProductDetails"; data.Values["productid"] = urlRecord.EntityId; data.Values["SeName"] = urlRecord.Slug; } break; however; where and how GenericPathRoute function public override RouteData GetRouteData(HttpContextBase httpContext) is called? every time below code is clicked <a href="@Url.RouteUrl("Product", new {SeName = Model.SeName})">@Model.Name</a> it calls GetRouteData(HttpContextBase httpContext) Regards, Archie
Total de postagens:
42
Karma:
326
Ingressou:
30/09/2017
Localização:
Philippines
Your info is useful but I still don't understand how public override RouteData GetRouteData(HttpContextBase httpContext) under GenericPathRoute.cs we're called and how and when Nop.Web.Framework get involved in this?