Total Posts: 42 Karma: 326 Joined: 9/30/2017 Location: 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 Posts: 42 Karma: 676 Joined: 8/18/2015 Location: India Good Question. I also want to know this. Thanks
Total Posts: 42 Karma: 326 Joined: 9/30/2017 Location: 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 Posts: 42 Karma: 326 Joined: 9/30/2017 Location: 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?