Url Help

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 anos atrás
Is there a way to change http://www.somesite.com/contactvendor/1, where 1 is the vendorId, to http://www.somesite.com/contactvendor/bluesky, where bluesky is the SeName?


routeBuilder.MapLocalizedRoute("ContactVendor", "contactvendor/{vendorId}",
        new { controller = "Common", action = "ContactVendor" });
6 anos atrás
nbrglobalinc wrote:
Is there a way to change http://www.somesite.com/contactvendor/1, where 1 is the vendorId, to http://www.somesite.com/contactvendor/bluesky, where bluesky is the SeName?


routeBuilder.MapLocalizedRoute("ContactVendor", "contactvendor/{vendorId}",
        new { controller = "Common", action = "ContactVendor" });


Hello,

You can follow product and category route GenericUrlRouteProvider.cs here \Presentation\Nop.Web\Infrastructure

Thanks,
Jatin
6 anos atrás
nbrglobalinc wrote:
Is there a way to change http://www.somesite.com/contactvendor/1, where 1 is the vendorId, to http://www.somesite.com/contactvendor/bluesky, where bluesky is the SeName?


routeBuilder.MapLocalizedRoute("ContactVendor", "contactvendor/{vendorId}",
        new { controller = "Common", action = "ContactVendor" });


Hello,

You can follow product and category route GenericUrlRouteProvider.cs here \Presentation\Nop.Web\Infrastructure

Thanks,
Jatin
6 anos atrás
Following those examples doesn't seem to work. Even tried copying the product code in GenericPathRoute in Nop.Web.Framework/Seo.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.