Anzahl der Beiträge:
42
Karma:
326
Beigetreten:
30.09.2017
Herkunft:
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?
Zertifizierter Entwickler
Anzahl der Beiträge:
42
Karma:
676
Beigetreten:
18.08.2015
Herkunft:
India
Good Question. I also want to know this. Thanks
Anzahl der Beiträge:
42
Karma:
326
Beigetreten:
30.09.2017
Herkunft:
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
Anzahl der Beiträge:
42
Karma:
326
Beigetreten:
30.09.2017
Herkunft:
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?